org.jboss.dependency.spi.helpers
Class UnmodifiableControllerContext

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.dependency.spi.helpers.UnmodifiableControllerContext
All Implemented Interfaces:
Cloneable, ControllerContext, org.jboss.util.JBossInterface
Direct Known Subclasses:
UnmodifiableKernelControllerContext

public class UnmodifiableControllerContext
extends org.jboss.util.JBossObject
implements ControllerContext

Unmodifiable delegate instance.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
UnmodifiableControllerContext(ControllerContext delegate)
           
 
Method Summary
 Set<Object> getAliases()
          The aliases
 Controller getController()
          Get the controller
protected  ControllerContext getDelegate()
          Get the delegate.
 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 class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString, toShortString
 

Constructor Detail

UnmodifiableControllerContext

public UnmodifiableControllerContext(ControllerContext delegate)
Method Detail

getDelegate

protected ControllerContext getDelegate()
Get the delegate.

Returns:
the delegate

getName

public Object getName()
Description copied from interface: ControllerContext
Get the name

Specified by:
getName in interface ControllerContext
Returns:
the name

getAliases

public Set<Object> getAliases()
Description copied from interface: ControllerContext
The aliases

Specified by:
getAliases in interface ControllerContext
Returns:
the aliases or null if there are no aliases

getDependencyInfo

public DependencyInfo getDependencyInfo()
Description copied from interface: ControllerContext
Get the dependency information

Specified by:
getDependencyInfo in interface ControllerContext
Returns:
the dependency information

getScopeInfo

public ScopeInfo getScopeInfo()
Description copied from interface: ControllerContext
Get the scope information

Specified by:
getScopeInfo in interface ControllerContext
Returns:
the scope information

getTarget

public Object getTarget()
Description copied from interface: ControllerContext
Get any target

Specified by:
getTarget in interface ControllerContext
Returns:
the target

getController

public Controller getController()
Description copied from interface: ControllerContext
Get the controller

Specified by:
getController in interface ControllerContext
Returns:
the controller

setController

public void setController(Controller controller)
Description copied from interface: ControllerContext
Set the controller

Specified by:
setController in interface ControllerContext
Parameters:
controller - the controller

install

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

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

uninstall

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

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

getState

public ControllerState getState()
Description copied from interface: ControllerContext
Get the state

Specified by:
getState in interface ControllerContext
Returns:
the state

setState

public void setState(ControllerState state)
Description copied from interface: ControllerContext
Set the state

Specified by:
setState in interface ControllerContext
Parameters:
state - the state

getRequiredState

public ControllerState getRequiredState()
Description copied from interface: ControllerContext
Get the required state

Specified by:
getRequiredState in interface ControllerContext
Returns:
the required state

setRequiredState

public void setRequiredState(ControllerState state)
Description copied from interface: ControllerContext
Set the required state

Specified by:
setRequiredState in interface ControllerContext
Parameters:
state - the required state

getMode

public ControllerMode getMode()
Description copied from interface: ControllerContext
Get the mode

Specified by:
getMode in interface ControllerContext
Returns:
the mode

setMode

public void setMode(ControllerMode mode)
Description copied from interface: ControllerContext
Set the mode

Specified by:
setMode in interface ControllerContext
Parameters:
mode - the mode

getErrorHandlingMode

public ErrorHandlingMode getErrorHandlingMode()
Description copied from interface: ControllerContext
Get the error handling mode.

Specified by:
getErrorHandlingMode in interface ControllerContext
Returns:
the error handling mode

getError

public Throwable getError()
Description copied from interface: ControllerContext
Get the error

Specified by:
getError in interface ControllerContext
Returns:
the error

setError

public void setError(Throwable error)
Description copied from interface: ControllerContext
Set the error

Specified by:
setError in interface ControllerContext
Parameters:
error - the error


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