org.jboss.dependency.plugins.graph
Class SearchDependencyItem

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.dependency.plugins.AbstractDependencyItem
          extended by org.jboss.dependency.plugins.graph.SearchDependencyItem
All Implemented Interfaces:
Cloneable, DependencyItem, org.jboss.util.JBossInterface
Direct Known Subclasses:
AbstractDependencyValueMetaData.OptionalDependencyItem

public class SearchDependencyItem
extends AbstractDependencyItem

Search dependency item.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.dependency.plugins.AbstractDependencyItem
log
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, toString
 
Constructor Summary
SearchDependencyItem(Object name, Object iDependOn, ControllerState whenRequired, ControllerState dependentState, SearchInfo search)
           
 
Method Summary
protected  ControllerContext getControllerContext(Controller controller, Object name, ControllerState state)
          Get controller context.
 boolean resolve(Controller controller)
          Try to resolve
protected  void toHumanReadableString(StringBuilder builder)
          Add info to builder.
 
Methods inherited from class org.jboss.dependency.plugins.AbstractDependencyItem
addDependsOnMe, getDependentState, getIDependOn, getName, getWhenRequired, isResolved, setIDependOn, setResolved, toHumanReadableString, toShortString, toString, unresolved, 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

SearchDependencyItem

public SearchDependencyItem(Object name,
                            Object iDependOn,
                            ControllerState whenRequired,
                            ControllerState dependentState,
                            SearchInfo search)
Method Detail

getControllerContext

protected ControllerContext getControllerContext(Controller controller,
                                                 Object name,
                                                 ControllerState state)
Get controller context.

Parameters:
controller - the controller
name - the name
state - the state
Returns:
the controller context

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

toHumanReadableString

protected void toHumanReadableString(StringBuilder builder)
Description copied from class: AbstractDependencyItem
Add info to builder.

Overrides:
toHumanReadableString in class AbstractDependencyItem
Parameters:
builder - the string builder


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