[jboss-user] [Microcontainer] - Re: Service validation

alesj do-not-reply at jboss.com
Fri Feb 22 19:50:42 EST 2008


Which three states you have in mind?

I'll do a simple explanation of what each state does, or better, what each action corresponding to state does:

In install phase:
NOT_INSTALLED - initial state
PRE_INSTALL - initialize scoped metadata, check for hierarchy of Controllers
DESCRIBED - add aop dependencies, handle IoC annotations
INSTANTIATED - instantiate pojo
CONFIGURED - configure pojo's propertys with values
CREATE - invoke create method (if exists)
START - invoke start method (if exists)
INSTALLED - register bean into registry, apply supplies

In uninstall phase:
INSTALLED - unregister bean from registry, clear supplies
START - invoke stop method (if exists)
CREATE - invoke destroy method (if exists)
CONFIGURED - nullify pojo's propertys
INSTANTIATED - nullify target pojo
DESCRIBED - clear IoC annotations
PRE_INSTALL - clear any Controller hierarchy (if applied) and scoped metadata
NOT_INSTALLED - end state

And actually there are more than 8 Controller states, to confuse you even more. :-)
But the one's mentioned are relevant for the POJOs. ;-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131587#4131587

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131587



More information about the jboss-user mailing list