|
|||||||||||
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.AbstractDependencyItem
A DependencyItem.
Field Summary |
Fields inherited from class org.jboss.util.JBossObject |
hashCode, toString |
Constructor Summary | |
AbstractDependencyItem()
Create a new dependency item |
|
AbstractDependencyItem(Object name,
Object iDependOn,
ControllerState whenRequired,
ControllerState dependentState)
Create a new dependency item |
Method Summary | |
protected void |
addDependsOnMe(Controller controller,
ControllerContext context)
Register a dependency with another context |
ControllerState |
getDependentState()
Get the dependent's state |
Object |
getIDependOn()
Get the object name i depend on |
Object |
getName()
Get my object name |
ControllerState |
getWhenRequired()
Get when the dependency is required |
boolean |
isResolved()
Whether we are resolved |
boolean |
resolve(Controller controller)
Try to resolve |
protected void |
setIDependOn(Object iDependOn)
Set what I depend upon |
protected void |
setResolved(boolean resolved)
Set the resolved state |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
void |
unresolved(Controller controller)
Mark the dependency as unresolved |
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 |
Constructor Detail |
public AbstractDependencyItem()
public AbstractDependencyItem(Object name, Object iDependOn, ControllerState whenRequired, ControllerState dependentState)
name
- my nameiDependOn
- what I depend onwhenRequired
- when the dependency is requireddependentState
- the required state of the dependentMethod Detail |
public Object getName()
DependencyItem
getName
in interface DependencyItem
public Object getIDependOn()
DependencyItem
getIDependOn
in interface DependencyItem
public ControllerState getWhenRequired()
DependencyItem
getWhenRequired
in interface DependencyItem
public ControllerState getDependentState()
DependencyItem
getDependentState
in interface DependencyItem
public boolean isResolved()
DependencyItem
isResolved
in interface DependencyItem
public boolean resolve(Controller controller)
DependencyItem
resolve
in interface DependencyItem
controller
- the controller
public void unresolved(Controller controller)
DependencyItem
unresolved
in interface DependencyItem
controller
- the controllerpublic void toString(org.jboss.util.JBossStringBuilder buffer)
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
protected void addDependsOnMe(Controller controller, ControllerContext context)
context
- the other contextprotected void setIDependOn(Object iDependOn)
iDependOn
- what I depend uponprotected void setResolved(boolean resolved)
resolved
- the new resolved state
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |