org.apache.james.transport
Class JamesMailetLoader

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.james.transport.Loader
          extended byorg.apache.james.transport.JamesMailetLoader
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, MailetLoader, org.apache.avalon.framework.service.Serviceable

public class JamesMailetLoader
extends Loader
implements MailetLoader

Loads Mailets for use inside James.


Field Summary
 
Fields inherited from class org.apache.james.transport.Loader
baseDirectory, MAILET_PACKAGE, mailetContext, MATCHER_PACKAGE, packages
 
Fields inherited from interface org.apache.james.services.MailetLoader
ROLE
 
Constructor Summary
JamesMailetLoader()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
           
 Mailet getMailet(String mailetName, org.apache.avalon.framework.configuration.Configuration configuration)
          Get a new Mailet with the specified name acting in the specified context.
 
Methods inherited from class org.apache.james.transport.Loader
contextualize, getPackages, initialize, service
 
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
 

Constructor Detail

JamesMailetLoader

public JamesMailetLoader()
Method Detail

configure

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

getMailet

public Mailet getMailet(String mailetName,
                        org.apache.avalon.framework.configuration.Configuration configuration)
                 throws MessagingException
Description copied from interface: MailetLoader
Get a new Mailet with the specified name acting in the specified context.

Specified by:
getMailet in interface MailetLoader
Throws:
MessagingException - if an error occurs
See Also:
MailetLoader.getMailet(java.lang.String, org.apache.avalon.framework.configuration.Configuration)


"Copyright © 1999-2006 Apache Jakarta Project. All Rights Reserved."