org.jboss.dependency.spi
Interface DependencyItem

All Known Implementing Classes:
AbstractDependencyItem

public interface DependencyItem

Information about a single dependency.

Version:
$Revision: 1.2 $
Author:
Adrian Brock

Method Summary
 ControllerState getDependentState()
          Get the dependent's state
 Object getIDependOn()
          Get the object name i depend on
 Object getName()
          Get my object name
 ControllerState getWhenRequired()
          Get when the dependency is required
 boolean isResolved()
          Whether we are resolved
 boolean resolve(Controller controller)
          Try to resolve
 void unresolved(Controller controller)
          Mark the dependency as unresolved
 

Method Detail

getIDependOn

public Object getIDependOn()
Get the object name i depend on

Returns:
the name

getName

public Object getName()
Get my object name

Returns:
the name

getWhenRequired

public ControllerState getWhenRequired()
Get when the dependency is required

Returns:
the state when required

getDependentState

public ControllerState getDependentState()
Get the dependent's state

Returns:
the state of the required of the dependent

isResolved

public boolean isResolved()
Whether we are resolved

Returns:
true for resolved, false otherwise

resolve

public boolean resolve(Controller controller)
Try to resolve

Parameters:
controller - the controller
Returns:
true for resolved, false otherwise

unresolved

public void unresolved(Controller controller)
Mark the dependency as unresolved

Parameters:
controller - the controller


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.