private class InitDestroyAnnotationBeanPostProcessor.LifecycleMetadata
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Set<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> |
checkedDestroyMethods |
private java.util.Set<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> |
checkedInitMethods |
private java.util.Collection<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> |
destroyMethods |
private java.util.Collection<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> |
initMethods |
private java.lang.Class<?> |
targetClass |
Constructor and Description |
---|
LifecycleMetadata(java.lang.Class<?> targetClass,
java.util.Collection<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> initMethods,
java.util.Collection<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> destroyMethods) |
Modifier and Type | Method and Description |
---|---|
void |
checkConfigMembers(RootBeanDefinition beanDefinition) |
boolean |
hasDestroyMethods() |
void |
invokeDestroyMethods(java.lang.Object target,
java.lang.String beanName) |
void |
invokeInitMethods(java.lang.Object target,
java.lang.String beanName) |
private final java.lang.Class<?> targetClass
private final java.util.Collection<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> initMethods
private final java.util.Collection<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> destroyMethods
private volatile java.util.Set<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> checkedInitMethods
private volatile java.util.Set<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> checkedDestroyMethods
public LifecycleMetadata(java.lang.Class<?> targetClass, java.util.Collection<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> initMethods, java.util.Collection<InitDestroyAnnotationBeanPostProcessor.LifecycleElement> destroyMethods)
public void checkConfigMembers(RootBeanDefinition beanDefinition)
public void invokeInitMethods(java.lang.Object target, java.lang.String beanName) throws java.lang.Throwable
java.lang.Throwable
public void invokeDestroyMethods(java.lang.Object target, java.lang.String beanName) throws java.lang.Throwable
java.lang.Throwable
public boolean hasDestroyMethods()