T - public abstract class AbstractLifecycleBeanPostProcessor<T> extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.core.PriorityOrdered, org.springframework.beans.factory.BeanFactoryAware
| Constructor and Description |
|---|
AbstractLifecycleBeanPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
executeLifecycleMethodAfterInit(T bean,
String beanname)
Method which gets executed if the bean implement the LifeCycleInterface.
|
protected abstract void |
executeLifecycleMethodBeforeInit(T bean,
String beanname)
Method which gets executed if the bean implement the LifeCycleInterface.
|
protected abstract Class<T> |
getLifeCycleInterface()
Return the class which mark the lifecycle.
|
int |
getOrder() |
Object |
postProcessAfterInitialization(Object bean,
String name) |
Object |
postProcessBeforeInitialization(Object bean,
String name) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory factory) |
void |
setOrder(int order) |
public void setBeanFactory(org.springframework.beans.factory.BeanFactory factory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic final Object postProcessBeforeInitialization(Object bean, String name) throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansException#postProcessBeforeInitialization(java.lang.Object, java.lang.String)public final Object postProcessAfterInitialization(Object bean, String name) throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansException#postProcessAfterInitialization(java.lang.Object, java.lang.String)protected abstract Class<T> getLifeCycleInterface()
protected abstract void executeLifecycleMethodBeforeInit(T bean, String beanname) throws Exception
bean - the actual beanbeanname - then name of the beanExceptionprotected abstract void executeLifecycleMethodAfterInit(T bean, String beanname) throws Exception
bean - the actual beanbeanname - then name of the beanExceptionpublic void setOrder(int order)
order - public int getOrder()
getOrder in interface org.springframework.core.OrderedOrdered.getOrder()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.