7.15. Life cycle
By default the Microcontainer uses
create
, start
, and destroy
methods when it moves through the various states. However, you may not want the Microcontainer to invoke them. For this reason, an ignore flag is available.
Example 7.25. Bean Life cycles
<bean name="FullLifecycleBean-3" class="org.jboss.demos.ioc.lifecycle.FullLifecycleBean"/> <bean name="FullLifecycleBean-2" class="org.jboss.demos.ioc.lifecycle.FullLifecycleBean"> <create ignored="true"/> </bean> <bean name="FullLifecycleBean-1" class="org.jboss.demos.ioc.lifecycle.FullLifecycleBean"> <start ignored="true"/> </bean>