public class MatcherLoaderBeanFactory extends AbstractLoaderBeanFactory<org.apache.mailet.Matcher> implements MatcherLoader
ConfigurableListableBeanFactory
of spring.
The Matchers are not registered in the factory after loading them!Constructor and Description |
---|
MatcherLoaderBeanFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.mailet.Matcher |
getMatcher(org.apache.mailet.MatcherConfig config)
Get a new
Matcher for the given MatcherConfig . |
protected String |
getStandardPackage()
Return the package name which will be used as suffix if the name provided
for
AbstractLoaderBeanFactory.load(String) does not contain a package name |
load, loadFailed
getBeanFactory, setBeanFactory
public org.apache.mailet.Matcher getMatcher(org.apache.mailet.MatcherConfig config) throws javax.mail.MessagingException
MatcherLoader
Matcher
for the given MatcherConfig
. The
returned Matcher
needs to be fully initialized, so the returned
instance is "read-to-use"getMatcher
in interface MatcherLoader
javax.mail.MessagingException
- if an error occursMatcherLoader.getMatcher(org.apache.mailet.MatcherConfig)
protected String getStandardPackage()
AbstractLoaderBeanFactory
AbstractLoaderBeanFactory.load(String)
does not contain a package namegetStandardPackage
in class AbstractLoaderBeanFactory<org.apache.mailet.Matcher>
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.