org.jboss.classloading.spi.dependency
Class RequirementDependencyItem

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.dependency.plugins.AbstractDependencyItem
          extended by org.jboss.classloading.spi.dependency.RequirementDependencyItem
All Implemented Interfaces:
Cloneable, org.jboss.dependency.spi.DependencyItem, org.jboss.util.JBossInterface

public class RequirementDependencyItem
extends org.jboss.dependency.plugins.AbstractDependencyItem

RequirementDependencyItem.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, toString
 
Constructor Summary
RequirementDependencyItem(Module module, Requirement requirement, org.jboss.dependency.spi.ControllerState state)
          Create a new RequirementDependencyItem.
 
Method Summary
 Module getModule()
          Get the module.
 Requirement getRequirement()
          Get the requirement.
 boolean resolve(org.jboss.dependency.spi.Controller controller)
           
 String toHumanReadableString()
           
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 boolean unresolved(org.jboss.dependency.spi.Controller controller)
           
 
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

RequirementDependencyItem

public RequirementDependencyItem(Module module,
                                 Requirement requirement,
                                 org.jboss.dependency.spi.ControllerState state)
Create a new RequirementDependencyItem.

Parameters:
module - the module
requirement - the requirement
state - when the dependency is required and the state of the required dependency
Throws:
IllegalArgumentException - for a null parameter
Method Detail

getModule

public Module getModule()
Get the module.

Returns:
the module.

getRequirement

public Requirement getRequirement()
Get the requirement.

Returns:
the requirement.

resolve

public boolean resolve(org.jboss.dependency.spi.Controller controller)
Specified by:
resolve in interface org.jboss.dependency.spi.DependencyItem
Overrides:
resolve in class org.jboss.dependency.plugins.AbstractDependencyItem

unresolved

public boolean unresolved(org.jboss.dependency.spi.Controller controller)
Specified by:
unresolved in interface org.jboss.dependency.spi.DependencyItem
Overrides:
unresolved in class org.jboss.dependency.plugins.AbstractDependencyItem

toString

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

toShortString

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

toHumanReadableString

public String toHumanReadableString()
Specified by:
toHumanReadableString in interface org.jboss.dependency.spi.DependencyItem
Overrides:
toHumanReadableString in class org.jboss.dependency.plugins.AbstractDependencyItem


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