Module net.shibboleth.ext.spring
Class AbstractComponentAwareFactoryBean<T>
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<T>
-
- net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean<T>
-
- Type Parameters:
T- The type to implement
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<T>,InitializingBean
- Direct Known Subclasses:
EvaluableScriptFactoryBean,PatternFactoryBean
public abstract class AbstractComponentAwareFactoryBean<T> extends AbstractFactoryBean<T>
A Factory bean which is aware ofDestructableComponent.
-
-
Field Summary
-
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description AbstractComponentAwareFactoryBean()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected TcreateInstance()Call the parent class to create the object, then initialize it aposite.protected voiddestroyInstance(T instance).protected abstract TdoCreateInstance()Call the parent class to create the instance.-
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, getObjectType, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
-
-
-
Method Detail
-
destroyInstance
protected void destroyInstance(T instance) throws Exception
. Call our destroy method if aposite.- Overrides:
destroyInstancein classAbstractFactoryBean<T>- Throws:
Exception
-
createInstance
protected final T createInstance() throws Exception
Call the parent class to create the object, then initialize it aposite. .- Specified by:
createInstancein classAbstractFactoryBean<T>- Throws:
Exception
-
-