|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContainerLifecycle
JSR-299 Container lifecycle.
| Method Summary | |
|---|---|
BeanManager |
getBeanManager()
Gets deployment bean manager instance. |
ContextsService |
getContextService()
Gets container's context service implementation. |
void |
initApplication(Properties properties)
Initialize lifecycle. |
void |
startApplication(Object startupObject)
Starts container. |
void |
stopApplication(Object endObject)
Stops means that container removes all bean instances it store, remove contexts and does necessary final actions. |
| Method Detail |
|---|
void initApplication(Properties properties)
Implementors can configure their initialization specific actions here.
properties - any properties
void startApplication(Object startupObject)
throws Exception
For Java EE artifact deployment, it scans all classes and libraries in the deployment archive. There are several types of deployment arhives;
Container uses metadata discovery SPI for scanning archives and act accordingly. If there is an exception while starting, it must abort the deployment and provides information to the developer.
startupObject - any startup object.
Exception - exception thrown by startupvoid stopApplication(Object endObject)
endObject - any onject provided by implementorsBeanManager getBeanManager()
BeanManager instanceContextsService getContextService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||