org.jboss.kernel.plugins.dependency
Class CallbackDependencyItem
java.lang.Object
org.jboss.util.JBossObject
org.jboss.dependency.plugins.AbstractDependencyItem
org.jboss.kernel.plugins.dependency.ClassDependencyItem
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
Fields inherited from class org.jboss.util.JBossObject |
hashCode, toString |
Methods inherited from class org.jboss.util.JBossObject |
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation |
CallbackDependencyItem
public CallbackDependencyItem(Object name,
Class<?> demandClass,
ControllerState whenRequired,
ControllerState dependentState,
Cardinality cardinality)
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.