org.apache.james.transport
Class MailetLoader

java.lang.Object
  |
  +--org.apache.james.transport.MailetLoader
All Implemented Interfaces:
Component, Configurable

public class MailetLoader
extends Object
implements Component, Configurable

Loads Mailets for use inside James.

Author:
Serge Knystautas , Federico Barbieri

Constructor Summary
MailetLoader()
           
 
Method Summary
 void configure(Configuration conf)
           
 Mailet getMailet(String mailetName, MailetContext context, Configuration configuration)
          Get a new Mailet with the specified name acting in the specified context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailetLoader

public MailetLoader()
Method Detail

configure

public void configure(Configuration conf)
               throws ConfigurationException
Specified by:
configure in interface Configurable
ConfigurationException
See Also:
Configurable.configure(Configuration)

getMailet

public Mailet getMailet(String mailetName,
                        MailetContext context,
                        Configuration configuration)
                 throws MessagingException
Get a new Mailet with the specified name acting in the specified context.

Parameters:
context - the MailetContext to be passed to the new mailet
Throws:
MessagingException - if an error occurs


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