org.jboss.kernel.plugins.dependency
Class CallbackDependencyItem

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.dependency.plugins.AbstractDependencyItem
          extended by org.jboss.kernel.plugins.dependency.ClassDependencyItem
              extended by org.jboss.kernel.plugins.dependency.CallbackDependencyItem
All Implemented Interfaces:
Cloneable, DependencyItem, org.jboss.util.JBossInterface

public class CallbackDependencyItem
extends ClassDependencyItem

A Callback dependencyItem.

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
CallbackDependencyItem(Object name, Class<?> demandClass, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality)
           
 
Method Summary
 boolean equals(Object obj)
           
 Cardinality getCardinality()
           
protected  Set<KernelControllerContext> getContexts(Controller controller)
           
protected  int getHashCode()
           
protected static boolean isDifferent(Object first, Object second)
           
 boolean resolve(Controller controller)
          Try to resolve
 String toHumanReadableString()
          Return a human readable version of the dependency
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 boolean unresolved(Controller controller)
          Mark the dependency as unresolved
 
Methods inherited from class org.jboss.kernel.plugins.dependency.ClassDependencyItem
clear, getDemandClass, toShortString
 
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, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallbackDependencyItem

public CallbackDependencyItem(Object name,
                              Class<?> demandClass,
                              ControllerState whenRequired,
                              ControllerState dependentState,
                              Cardinality cardinality)
Method Detail

getCardinality

public Cardinality getCardinality()

getContexts

protected Set<KernelControllerContext> getContexts(Controller controller)

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 boolean unresolved(Controller controller)
Description copied from interface: DependencyItem
Mark the dependency as unresolved

Specified by:
unresolved in interface DependencyItem
Overrides:
unresolved in class AbstractDependencyItem
Parameters:
controller - the controller
Returns:
true if proceed with unresolving, false otherwise

getHashCode

protected int getHashCode()
Overrides:
getHashCode in class org.jboss.util.JBossObject

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

isDifferent

protected static boolean isDifferent(Object first,
                                     Object second)

toString

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

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 ClassDependencyItem
Returns:
the string


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