org.jboss.dependency.spi
Interface ControllerContext

All Superinterfaces:
Cloneable, org.jboss.util.JBossInterface
All Known Subinterfaces:
AliasControllerContext, KernelControllerContext, KernelRegistryEntry
All Known Implementing Classes:
AbstractAliasControllerContext, AbstractControllerContext, AbstractKernelControllerContext, AbstractKernelRegistryEntry, BeanKernelRegistryEntry, ScopedAliasControllerContext, UnmodifiableControllerContext, UnmodifiableKernelControllerContext

public interface ControllerContext
extends org.jboss.util.JBossInterface

Information about a context.

Version:
$Revision: 71354 $
Author:
Adrian Brock

Method Summary
 Set<Object> getAliases()
          The aliases
 Controller getController()
          Get the controller
 DependencyInfo getDependencyInfo()
          Get the dependency information
 Throwable getError()
          Get the error
 ErrorHandlingMode getErrorHandlingMode()
          Get the error handling mode.
 ControllerMode getMode()
          Get the mode
 Object getName()
          Get the name
 ControllerState getRequiredState()
          Get the required state
 ScopeInfo getScopeInfo()
          Get the scope information
 ControllerState getState()
          Get the state
 Object getTarget()
          Get any target
 void install(ControllerState fromState, ControllerState toState)
          Install
 void setController(Controller controller)
          Set the controller
 void setError(Throwable error)
          Set the error
 void setMode(ControllerMode mode)
          Set the mode
 void setRequiredState(ControllerState state)
          Set the required state
 void setState(ControllerState state)
          Set the state
 void uninstall(ControllerState fromState, ControllerState toState)
          Uninstall
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Method Detail

getName

Object getName()
Get the name

Returns:
the name

getAliases

Set<Object> getAliases()
The aliases

Returns:
the aliases or null if there are no aliases

getDependencyInfo

DependencyInfo getDependencyInfo()
Get the dependency information

Returns:
the dependency information

getScopeInfo

ScopeInfo getScopeInfo()
Get the scope information

Returns:
the scope information

getTarget

Object getTarget()
Get any target

Returns:
the target

getController

Controller getController()
Get the controller

Returns:
the controller

setController

void setController(Controller controller)
Set the controller

Parameters:
controller - the controller

install

void install(ControllerState fromState,
             ControllerState toState)
             throws Throwable
Install

Parameters:
fromState - the old state
toState - the new state
Throws:
Throwable - for any error

uninstall

void uninstall(ControllerState fromState,
               ControllerState toState)
Uninstall

Parameters:
fromState - the old state
toState - the new state

getState

ControllerState getState()
Get the state

Returns:
the state

setState

void setState(ControllerState state)
Set the state

Parameters:
state - the state

getRequiredState

ControllerState getRequiredState()
Get the required state

Returns:
the required state

setRequiredState

void setRequiredState(ControllerState state)
Set the required state

Parameters:
state - the required state

getMode

ControllerMode getMode()
Get the mode

Returns:
the mode

setMode

void setMode(ControllerMode mode)
Set the mode

Parameters:
mode - the mode

getErrorHandlingMode

ErrorHandlingMode getErrorHandlingMode()
Get the error handling mode.

Returns:
the error handling mode

getError

Throwable getError()
Get the error

Returns:
the error

setError

void setError(Throwable error)
Set the error

Parameters:
error - the error


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