org.apache.james.transport
Class Loader

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.james.transport.Loader
All Implemented Interfaces:
org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable
Direct Known Subclasses:
JamesMailetLoader, JamesMatcherLoader

public abstract class Loader
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable

$Id: Loader.java 684792 2008-08-11 16:18:23Z bago $


Nested Class Summary
protected static class Loader.MailetContextWrapper
          Wrapper fot a MailetContext that simply override the used logger.
 
Field Summary
protected  java.lang.String baseDirectory
           
protected  java.lang.String MAILET_PACKAGE
           
protected  org.apache.mailet.MailetContext mailetContext
          Mailet context
protected  java.lang.String MATCHER_PACKAGE
           
protected  java.util.Vector packages
          The list of packages that may contain Mailets or matchers
 
Constructor Summary
Loader()
           
 
Method Summary
abstract  void configure(org.apache.avalon.framework.configuration.Configuration arg0)
           
protected  void getPackages(org.apache.avalon.framework.configuration.Configuration conf, java.lang.String packageType)
           
 void initialize()
           
 void service(org.apache.avalon.framework.service.ServiceManager sm)
           
 void setMailetContext(org.apache.mailet.MailetContext mailetContext)
          Set the MailetContext
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseDirectory

protected java.lang.String baseDirectory

MAILET_PACKAGE

protected final java.lang.String MAILET_PACKAGE
See Also:
Constant Field Values

MATCHER_PACKAGE

protected final java.lang.String MATCHER_PACKAGE
See Also:
Constant Field Values

packages

protected java.util.Vector packages
The list of packages that may contain Mailets or matchers


mailetContext

protected org.apache.mailet.MailetContext mailetContext
Mailet context

Constructor Detail

Loader

public Loader()
Method Detail

setMailetContext

public void setMailetContext(org.apache.mailet.MailetContext mailetContext)
Set the MailetContext

Parameters:
mailetContext - the MailetContext

getPackages

protected void getPackages(org.apache.avalon.framework.configuration.Configuration conf,
                           java.lang.String packageType)
                    throws org.apache.avalon.framework.configuration.ConfigurationException
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

service

public void service(org.apache.avalon.framework.service.ServiceManager sm)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception
See Also:
Initializable.initialize()

configure

public abstract void configure(org.apache.avalon.framework.configuration.Configuration arg0)
                        throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.