org.jboss.dependency.spi
Interface CallbackItem<T>

Type Parameters:
T - expected name type - Class, String, ...
All Known Implementing Classes:
AbstractCallbackItem, AttributeCallbackItem, ClassAttributeCallbackItem, ClassSingleCallbackItem, CollectionCallbackItem, CollectionCreatorCallbackItem, ListCallbackItem, OwnerCallbackItem, QueueCallbackItem, SetCallbackItem, SingleCallbackItem

public interface CallbackItem<T>

Callback information.

Author:
Ales Justin

Method Summary
 void changeCallback(Controller controller, ControllerContext context, boolean isInstallPhase)
          Execute callback with current changed context.
 String getAttributeName()
          Get the method/attribute/property name
 ControllerState getDependentState()
          Get the dependent's state
 T getIDependOn()
          Get the object name i depend on
 ControllerState getWhenRequired()
          Get when the dependency is required
 void ownerCallback(Controller controller, boolean isInstallPhase)
          Execute callback when item added to controller.
 

Method Detail

getIDependOn

T getIDependOn()
Get the object name i depend on

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

getAttributeName

String getAttributeName()
Get the method/attribute/property name

Returns:
the name

ownerCallback

void ownerCallback(Controller controller,
                   boolean isInstallPhase)
                   throws Throwable
Execute callback when item added to controller.

Parameters:
controller - the controller
isInstallPhase - install or uninstall
Throws:
Throwable - for any error

changeCallback

void changeCallback(Controller controller,
                    ControllerContext context,
                    boolean isInstallPhase)
                    throws Throwable
Execute callback with current changed context.

Parameters:
controller - the controller
context - the new context
isInstallPhase - install or uninstall
Throws:
Throwable - for any error


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