public abstract class AbstractLoaderBeanFactory<T> extends AbstractBeanFactory
Constructor and Description |
---|
AbstractLoaderBeanFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getStandardPackage()
Return the package name which will be used as suffix if the name provided
for
load(String) does not contain a package name |
protected T |
load(String name)
Load the class for the given name.
|
protected org.apache.mailet.MailetException |
loadFailed(String name,
String type,
Exception e)
Constructs an appropriate exception with an appropriate message.
|
getBeanFactory, setBeanFactory
protected T load(String name) throws ClassNotFoundException
getStandardPackage()
name
- ClassNotFoundException
protected org.apache.mailet.MailetException loadFailed(String name, String type, Exception e)
name
- not nulle
- not nullprotected abstract String getStandardPackage()
load(String)
does not contain a package nameCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.