org.jboss.dependency.spi
Interface LifecycleCallbackItem

All Known Implementing Classes:
AbstractLifecycleCallbackItem

public interface LifecycleCallbackItem

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Method Summary
 Object getBean()
          Gets the target bean implementing this callback
 ControllerState getDependentState()
          The required state of the lifecycle callback bean
 ControllerState getWhenRequired()
          Get the target state of the bean this callback applies to indicating when this callback should trigger
 void install(ControllerContext ctx)
          Call when the target bean is installed
 void uninstall(ControllerContext ctx)
          Call when the target bean is uninstalled
 

Method Detail

getBean

Object getBean()
Gets the target bean implementing this callback

Returns:
the target bean name

getWhenRequired

ControllerState getWhenRequired()
Get the target state of the bean this callback applies to indicating when this callback should trigger

Returns:
the state

getDependentState

ControllerState getDependentState()
The required state of the lifecycle callback bean

Returns:
the dependant state

install

void install(ControllerContext ctx)
             throws Exception
Call when the target bean is installed

Parameters:
ctx - the context of the target bean
Throws:
Exception - for any error

uninstall

void uninstall(ControllerContext ctx)
Call when the target bean is uninstalled

Parameters:
ctx - the context of the target bean


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