org.jboss.dependency.plugins
Class AbstractControllerContextActions

java.lang.Object
  extended by org.jboss.dependency.plugins.AbstractControllerContextActions
All Implemented Interfaces:
ControllerContextActions
Direct Known Subclasses:
KernelControllerContextActions

public class AbstractControllerContextActions
extends Object
implements ControllerContextActions

ControllerContextActions.

Version:
$Revision: 1.2 $
Author:
Adrian Brock

Constructor Summary
AbstractControllerContextActions(Map actions)
           
 
Method Summary
protected  ControllerContextAction getAction(ControllerContext context, ControllerState state)
          Get the controller context action
 void install(ControllerContext context, ControllerState fromState, ControllerState toState)
          Install a context
 void uninstall(ControllerContext context, ControllerState fromState, ControllerState toState)
          Uninstall a context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractControllerContextActions

public AbstractControllerContextActions(Map actions)
Method Detail

install

public void install(ControllerContext context,
                    ControllerState fromState,
                    ControllerState toState)
             throws Throwable
Description copied from interface: ControllerContextActions
Install a context

Specified by:
install in interface ControllerContextActions
Parameters:
context - the context
fromState - the old state
toState - the new state
Throws:
Throwable - for any error

uninstall

public void uninstall(ControllerContext context,
                      ControllerState fromState,
                      ControllerState toState)
Description copied from interface: ControllerContextActions
Uninstall a context

Specified by:
uninstall in interface ControllerContextActions
Parameters:
context - the context
fromState - the old state
toState - the new state

getAction

protected ControllerContextAction getAction(ControllerContext context,
                                            ControllerState state)
Get the controller context action

Parameters:
context - the context
state - the state
Returns:
the action


Copyright © 2004 JBoss Inc. All Rights Reserved.