org.jboss.beans.metadata.plugins
Class AbstractDemandMetaData.DemandDependencyItem

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.dependency.plugins.AbstractDependencyItem
          extended by org.jboss.beans.metadata.plugins.AbstractDemandMetaData.DemandDependencyItem
All Implemented Interfaces:
Cloneable, DependencyItem, org.jboss.util.JBossInterface
Enclosing class:
AbstractDemandMetaData

public class AbstractDemandMetaData.DemandDependencyItem
extends AbstractDependencyItem

Information about a demand dependency.


Field Summary
 
Fields inherited from class org.jboss.dependency.plugins.AbstractDependencyItem
log
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, toString
 
Constructor Summary
AbstractDemandMetaData.DemandDependencyItem(Object name)
          Create a new demand dependecy
 
Method Summary
protected  Object getDemandObject()
          Get the demand or matcher if set.
 boolean resolve(Controller controller)
          Try to resolve
 String toHumanReadableString()
          Return a human readable version of the dependency
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 void unresolved()
           
 
Methods inherited from class org.jboss.dependency.plugins.AbstractDependencyItem
addDependsOnMe, getDependentState, getIDependOn, getName, getWhenRequired, isResolved, setIDependOn, setResolved, toHumanReadableString, 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

AbstractDemandMetaData.DemandDependencyItem

public AbstractDemandMetaData.DemandDependencyItem(Object name)
Create a new demand dependecy

Parameters:
name - my name
Method Detail

getDemandObject

protected Object getDemandObject()
Get the demand or matcher if set.

Returns:
more exact demand object

resolve

public boolean resolve(Controller controller)
Description copied from interface: DependencyItem
Try to resolve

Specified by:
resolve in interface DependencyItem
Overrides:
resolve in class AbstractDependencyItem
Parameters:
controller - the controller
Returns:
true for resolved, false otherwise

unresolved

public void unresolved()
Overrides:
unresolved in class AbstractDependencyItem

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class AbstractDependencyItem

toShortString

public void toShortString(org.jboss.util.JBossStringBuilder buffer)
Specified by:
toShortString in interface org.jboss.util.JBossInterface
Overrides:
toShortString in class AbstractDependencyItem

toHumanReadableString

public String toHumanReadableString()
Description copied from interface: DependencyItem
Return a human readable version of the dependency

Specified by:
toHumanReadableString in interface DependencyItem
Overrides:
toHumanReadableString in class AbstractDependencyItem
Returns:
the string


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.