Methods Summary |
---|
public abstract void | configure(org.apache.avalon.framework.configuration.Configuration arg0)
|
public void | contextualize(org.apache.avalon.framework.context.Context context)
try
{
baseDirectory = ((File)context.get( "app.home") ).getCanonicalPath();
}
catch (Throwable e)
{
getLogger().error( "can't get base directory for mailet loader" );
throw new ContextException("can't contextualise mailet loader " + e.getMessage(), e);
}
|
protected void | getPackages(org.apache.avalon.framework.configuration.Configuration conf, java.lang.String packageType)
packages = new Vector();
packages.addElement("");
final Configuration[] pkgConfs = conf.getChildren(packageType);
for (int i = 0; i < pkgConfs.length; i++) {
Configuration c = pkgConfs[i];
String packageName = c.getValue();
if (!packageName.endsWith(".")) {
packageName += ".";
}
packages.addElement(packageName);
}
|
public void | initialize()
mailetContext = (MailetContext) serviceManager.lookup("org.apache.mailet.MailetContext");
|
public void | service(org.apache.avalon.framework.service.ServiceManager sm)
serviceManager = new DefaultServiceManager(sm);
|