Package org.xbricks.common.samples
Class LifeCycleDemoBean
java.lang.Object
org.xbricks.common.samples.LifeCycleDemoBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
@Component
public class LifeCycleDemoBean
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationContextAware
Created by Juraj Horak
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
destroy()
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) void
setBeanName
(String name)
-
Constructor Details
-
LifeCycleDemoBean
public LifeCycleDemoBean()
-
-
Method Details
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
setBeanFactory
public void setBeanFactory(@Nullable org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
setBeanName
- Specified by:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
-
setApplicationContext
public void setApplicationContext(@Nullable org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
beforeInit
public void beforeInit() -
afterInit
public void afterInit()
-