org.jboss.kernel.plugins.dependency
Class ClassDependencyItem

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

public abstract class ClassDependencyItem
extends AbstractDependencyItem

A class dependant 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
ClassDependencyItem(Object name, Class<?> demandClass, ControllerState whenRequired, ControllerState dependentState)
           
 
Method Summary
 void clear(Controller controller)
          Clear the class reference.
protected  Class<?> getDemandClass()
           
 String toHumanReadableString()
          Return a human readable version of the dependency
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.dependency.plugins.AbstractDependencyItem
addDependsOnMe, getDependentState, getIDependOn, getName, getWhenRequired, isResolved, resolve, setIDependOn, setResolved, toHumanReadableString, 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

ClassDependencyItem

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

getDemandClass

protected Class<?> getDemandClass()

clear

public void clear(Controller controller)
Clear the class reference.

Parameters:
controller - the controller

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.