org.jboss.deployment.dependency
Class JndiDependencyItem

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

public class JndiDependencyItem
extends org.jboss.dependency.plugins.AbstractDependencyItem
implements org.jboss.dependency.spi.DependencyItem

Dependency on a jndi name

Version:
$Revision: 85945 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, toString
 
Constructor Summary
JndiDependencyItem(String jndiName, ClassLoader loader, org.jboss.dependency.spi.ControllerState whenRequired)
          Create a demand for a jndi name lookup using the given class loader.
 
Method Summary
 Object getDemand()
           
 boolean resolve(org.jboss.dependency.spi.Controller controller)
           
 String toHumanReadableString()
           
 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, 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
 
Methods inherited from interface org.jboss.dependency.spi.DependencyItem
getDependentState, getIDependOn, getName, getWhenRequired, isResolved, unresolved
 

Constructor Detail

JndiDependencyItem

public JndiDependencyItem(String jndiName,
                          ClassLoader loader,
                          org.jboss.dependency.spi.ControllerState whenRequired)
Create a demand for a jndi name lookup using the given class loader.

Parameters:
jndiName - - the name to lookup
loader - - the ClassLoader to use as the TCL during lookup.
Method Detail

getDemand

public Object getDemand()

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

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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.