|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dependency.plugins.AbstractLifecycleCallbackItem
public class AbstractLifecycleCallbackItem
Constructor Summary | |
---|---|
AbstractLifecycleCallbackItem(Object bean,
ControllerState whenRequired,
ControllerState dependentState,
String installMethod,
String uninstallMethod)
|
Method Summary | |
---|---|
Object |
getBean()
Gets the target bean implementing this callback |
ControllerState |
getDependentState()
The required state of the lifecycle callback bean |
ControllerState |
getWhenRequired()
Get the target state of the bean this callback applies to indicating when this callback should trigger |
void |
install(ControllerContext ctx)
Call when the target bean is installed |
String |
toString()
|
void |
uninstall(ControllerContext ctx)
Call when the target bean is uninstalled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractLifecycleCallbackItem(Object bean, ControllerState whenRequired, ControllerState dependentState, String installMethod, String uninstallMethod)
Method Detail |
---|
public Object getBean()
LifecycleCallbackItem
getBean
in interface LifecycleCallbackItem
public ControllerState getDependentState()
LifecycleCallbackItem
getDependentState
in interface LifecycleCallbackItem
public ControllerState getWhenRequired()
LifecycleCallbackItem
getWhenRequired
in interface LifecycleCallbackItem
public void install(ControllerContext ctx) throws Exception
LifecycleCallbackItem
install
in interface LifecycleCallbackItem
ctx
- the context of the target bean
Exception
- for any errorpublic void uninstall(ControllerContext ctx)
LifecycleCallbackItem
uninstall
in interface LifecycleCallbackItem
ctx
- the context of the target beanpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |