|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the class of the bean instancepublic interface ContextualLifecycle<T>
Callbacks used by BeanBuilder and ImmutableBean to allow control
of the creation and destruction of a custom bean.
| Method Summary | |
|---|---|
T |
create(Bean<T> bean,
CreationalContext<T> creationalContext)
Callback invoked by a Seam Solder created bean when Contextual.create(CreationalContext) is called. |
void |
destroy(Bean<T> bean,
T instance,
CreationalContext<T> creationalContext)
Callback invoked by a Seam Solder created bean when Contextual.destroy(Object, CreationalContext) is called. |
| Method Detail |
|---|
T create(Bean<T> bean,
CreationalContext<T> creationalContext)
Contextual.create(CreationalContext) is called.
bean - the bean initiating the callbackcreationalContext - the context in which this instance was created
void destroy(Bean<T> bean,
T instance,
CreationalContext<T> creationalContext)
Contextual.destroy(Object, CreationalContext) is called.
bean - the bean initiating the callbackinstance - the contextual instance to destroycreationalContext - the context in which this instance was created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||