org.apache.james.transport
Class JamesMatcherLoader

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.james.transport.Loader
          extended by org.apache.james.transport.JamesMatcherLoader
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, MatcherLoader

public class JamesMatcherLoader
extends Loader
implements MatcherLoader

Loads Matchers 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.MatcherLoader
ROLE
 
Constructor Summary
JamesMatcherLoader()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
           
 Matcher getMatcher(java.lang.String matchName)
          Get a new Matcher 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

JamesMatcherLoader

public JamesMatcherLoader()
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)

getMatcher

public Matcher getMatcher(java.lang.String matchName)
                   throws javax.mail.MessagingException
Description copied from interface: MatcherLoader
Get a new Matcher with the specified name acting in the specified context.

Specified by:
getMatcher in interface MatcherLoader
Parameters:
matchName - the name of the matcher to be loaded
Throws:
javax.mail.MessagingException - if an error occurs


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