|
||||||||||
| 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
public class 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 |
String |
toHumanReadableString()
Return a human readable version of the dependency |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
boolean |
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 dependent| Method Detail |
|---|
public Object getName()
DependencyItem
getName in interface DependencyItempublic Object getIDependOn()
DependencyItem
getIDependOn in interface DependencyItempublic ControllerState getWhenRequired()
DependencyItem
getWhenRequired in interface DependencyItempublic ControllerState getDependentState()
DependencyItem
getDependentState in interface DependencyItempublic boolean isResolved()
DependencyItem
isResolved in interface DependencyItempublic boolean resolve(Controller controller)
DependencyItem
resolve in interface DependencyItemcontroller - the controller
public boolean unresolved(Controller controller)
DependencyItem
unresolved in interface DependencyItemcontroller - the controller
public void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectpublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObject
protected void addDependsOnMe(Controller controller,
ControllerContext context)
controller - the controllercontext - the other contextprotected void setIDependOn(Object iDependOn)
iDependOn - what I depend uponprotected void setResolved(boolean resolved)
resolved - the new resolved statepublic String toHumanReadableString()
DependencyItem
toHumanReadableString in interface DependencyItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||