public class LifecycleBeanPostProcessor
extends java.lang.Object
implements org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor, org.springframework.core.PriorityOrdered
Constructable.init() and
Destroyable.destroy() for every bean that implements these
interfaces. In contrast to the javax.annotation.PostConstruct and
javax.annotation.PreDestroy annotations, these methods will also be
called if they are declared in a super class of the bean.
This postprocess will be called at the same stages,
CommonAnnotationBeanPostProcessor would be called:
Constructor
Bean-Injections
Settings-Injections
init()
...
destroy()Constructable,
Destroyable| Constructor and Description |
|---|
LifecycleBeanPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
java.lang.Object |
postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
void |
postProcessBeforeDestruction(java.lang.Object bean,
java.lang.String beanName) |
java.lang.Object |
postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
boolean |
requiresDestruction(java.lang.Object bean) |
void |
setOrder(int order) |
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName)
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessorpublic void postProcessBeforeDestruction(java.lang.Object bean,
java.lang.String beanName)
postProcessBeforeDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessorpublic java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName)
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessorpublic boolean requiresDestruction(java.lang.Object bean)
requiresDestruction in interface org.springframework.beans.factory.config.DestructionAwareBeanPostProcessorCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.