org.jboss.dependency.spi
Interface DependencyItem

All Known Implementing Classes:
AbstractDependencyItem

public interface DependencyItem

Information about a single dependency.

Version:
$Revision: 1.3 $
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

Object getIDependOn()
Get the object name i depend on

Returns:
the name

getName

Object getName()
Get my object name

Returns:
the name

getWhenRequired

ControllerState getWhenRequired()
Get when the dependency is required

Returns:
the state when required

getDependentState

ControllerState getDependentState()
Get the dependent's state

Returns:
the state of the required of the dependent

isResolved

boolean isResolved()
Whether we are resolved

Returns:
true for resolved, false otherwise

resolve

boolean resolve(Controller controller)
Try to resolve

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

unresolved

void unresolved(Controller controller)
Mark the dependency as unresolved

Parameters:
controller - the controller


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