|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.dependency.plugins.AbstractCallbackItem<T>
T
- the callback typepublic abstract class AbstractCallbackItem<T>
Abstract callback item.
Field Summary | |
---|---|
protected String |
attributeName
|
protected ControllerState |
dependentState
|
protected T |
name
|
protected ControllerState |
whenRequired
|
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Constructor Summary | |
---|---|
protected |
AbstractCallbackItem(T name)
|
protected |
AbstractCallbackItem(T name,
ControllerState whenRequired,
ControllerState dependentState,
String attributeName)
|
Method Summary | |
---|---|
protected void |
changeCallback(ControllerContext context,
boolean isInstallPhase)
Helper method. |
void |
changeCallback(Controller controller,
ControllerContext context,
boolean isInstallPhase)
Execute callback with current changed context. |
String |
getAttributeName()
Get the method/attribute/property name |
ControllerState |
getDependentState()
Get the dependent's state |
T |
getIDependOn()
Get the object name i depend on |
ControllerState |
getWhenRequired()
Get when the dependency is required |
void |
ownerCallback(Controller controller,
boolean isInstallPhase)
Execute callback when item added to controller. |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
protected void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected T name
protected ControllerState whenRequired
protected ControllerState dependentState
protected String attributeName
Constructor Detail |
---|
protected AbstractCallbackItem(T name)
protected AbstractCallbackItem(T name, ControllerState whenRequired, ControllerState dependentState, String attributeName)
Method Detail |
---|
public void ownerCallback(Controller controller, boolean isInstallPhase) throws Throwable
CallbackItem
ownerCallback
in interface CallbackItem<T>
controller
- the controllerisInstallPhase
- install or uninstall
Throwable
- for any errorprotected void changeCallback(ControllerContext context, boolean isInstallPhase) throws Throwable
context
- changed contextisInstallPhase
- install or uninstall phase
Throwable
- for any errorpublic void changeCallback(Controller controller, ControllerContext context, boolean isInstallPhase) throws Throwable
CallbackItem
changeCallback
in interface CallbackItem<T>
controller
- the controllercontext
- the new contextisInstallPhase
- install or uninstall
Throwable
- for any errorpublic T getIDependOn()
CallbackItem
getIDependOn
in interface CallbackItem<T>
public ControllerState getWhenRequired()
CallbackItem
getWhenRequired
in interface CallbackItem<T>
public ControllerState getDependentState()
CallbackItem
getDependentState
in interface CallbackItem<T>
public String getAttributeName()
CallbackItem
getAttributeName
in interface CallbackItem<T>
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class org.jboss.util.JBossObject
protected void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |