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.context.Contextualizable, 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.context.Contextualizable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable

$Id: Loader.java 494012 2007-01-08 10:23:58Z norman $


Field Summary
protected  java.lang.String baseDirectory
           
protected  java.lang.String MAILET_PACKAGE
           
protected  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)
           
 void contextualize(org.apache.avalon.framework.context.Context context)
           
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)
           
 
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 MailetContext mailetContext
Mailet context

Constructor Detail

Loader

public Loader()
Method Detail

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
Throws:
org.apache.avalon.framework.context.ContextException
See Also:
Contextualizable.contextualize(Context)

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.