|
||||||||||
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 | |
---|---|
protected static org.jboss.logging.Logger |
log
The log |
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 |
protected void |
toHumanReadableString(StringBuilder builder)
Add info to builder. |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
void |
unresolved()
|
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 |
Field Detail |
---|
protected static final org.jboss.logging.Logger log
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()
public boolean unresolved(Controller controller)
DependencyItem
unresolved
in interface DependencyItem
controller
- the controller
public void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
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
protected void toHumanReadableString(StringBuilder builder)
builder
- the string builder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |