|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.dependency.plugins.AbstractControllerContext
public class AbstractControllerContext
A ControllerContext.
Field Summary |
---|
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Constructor Summary | |
---|---|
AbstractControllerContext(Object name,
ControllerContextActions actions)
Create a new AbstractControllerContext. |
|
AbstractControllerContext(Object name,
ControllerContextActions actions,
DependencyInfo dependencies)
Create a new AbstractControllerContext. |
|
AbstractControllerContext(Object name,
ControllerContextActions actions,
DependencyInfo dependencies,
Object target)
Create a new AbstractControllerContext. |
|
AbstractControllerContext(Object name,
Object target)
Create a new AbstractControllerContext. |
|
AbstractControllerContext(Object name,
Set<Object> aliases,
ControllerContextActions actions,
DependencyInfo dependencies,
Object target)
Create a new AbstractControllerContext. |
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 |
protected void |
initScopeInfo()
Initialise the scope info |
void |
install(ControllerState fromState,
ControllerState toState)
Install |
protected Object |
needsAnAlias(Object original)
Whether the given name needs an alias |
void |
setAliases(Set<Object> aliases)
Set the aliases |
void |
setController(Controller controller)
Set the controller |
void |
setError(Throwable error)
Set the error |
void |
setErrorHandlingMode(ErrorHandlingMode errorHandlingMode)
Set the error handling mode. |
void |
setMode(ControllerMode mode)
Set the mode |
void |
setName(Object name)
Set the name |
void |
setRequiredState(ControllerState state)
Set the required state |
void |
setScopeInfo(ScopeInfo scopeInfo)
Set the scopeInfo. |
void |
setState(ControllerState state)
Set the state |
void |
setTarget(Object target)
Set the target |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
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, 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 |
Constructor Detail |
---|
public AbstractControllerContext(Object name, ControllerContextActions actions)
name
- the nameactions
- the actionspublic AbstractControllerContext(Object name, ControllerContextActions actions, DependencyInfo dependencies)
name
- the nameactions
- the actionsdependencies
- the dependenciespublic AbstractControllerContext(Object name, ControllerContextActions actions, DependencyInfo dependencies, Object target)
name
- the nameactions
- the actionsdependencies
- the dependenciestarget
- the targetpublic AbstractControllerContext(Object name, Set<Object> aliases, ControllerContextActions actions, DependencyInfo dependencies, Object target)
name
- the namealiases
- the aliasesactions
- the actionsdependencies
- the dependenciestarget
- the targetpublic AbstractControllerContext(Object name, Object target)
name
- the nametarget
- the targetMethod Detail |
---|
public Object getName()
ControllerContext
getName
in interface ControllerContext
public void setName(Object name)
name
- the namepublic Set<Object> getAliases()
ControllerContext
getAliases
in interface ControllerContext
public void setAliases(Set<Object> aliases)
Aliases in this list only take effect if they are set before installation on the controller
aliases
- the aliasespublic ControllerState getState()
ControllerContext
getState
in interface ControllerContext
public ControllerState getRequiredState()
ControllerContext
getRequiredState
in interface ControllerContext
public void setRequiredState(ControllerState state)
ControllerContext
setRequiredState
in interface ControllerContext
state
- the required statepublic ControllerMode getMode()
ControllerContext
getMode
in interface ControllerContext
public void setMode(ControllerMode mode)
ControllerContext
setMode
in interface ControllerContext
mode
- the modepublic ErrorHandlingMode getErrorHandlingMode()
ControllerContext
getErrorHandlingMode
in interface ControllerContext
public void setErrorHandlingMode(ErrorHandlingMode errorHandlingMode)
errorHandlingMode
- the error handling modepublic Controller getController()
ControllerContext
getController
in interface ControllerContext
public void setController(Controller controller)
ControllerContext
setController
in interface ControllerContext
controller
- the controllerpublic DependencyInfo getDependencyInfo()
ControllerContext
getDependencyInfo
in interface ControllerContext
public ScopeInfo getScopeInfo()
ControllerContext
getScopeInfo
in interface ControllerContext
public void setScopeInfo(ScopeInfo scopeInfo)
scopeInfo
- the scopeInfo.public Object getTarget()
ControllerContext
getTarget
in interface ControllerContext
public void setTarget(Object target)
target
- the targetpublic Throwable getError()
ControllerContext
getError
in interface ControllerContext
public void setError(Throwable error)
ControllerContext
setError
in interface ControllerContext
error
- the errorpublic void setState(ControllerState state)
ControllerContext
setState
in interface ControllerContext
state
- the statepublic void install(ControllerState fromState, ControllerState toState) throws Throwable
ControllerContext
install
in interface ControllerContext
fromState
- the old statetoState
- the new state
Throwable
- for any errorpublic void uninstall(ControllerState fromState, ControllerState toState)
ControllerContext
uninstall
in interface ControllerContext
fromState
- the old statetoState
- the new statepublic void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class org.jboss.util.JBossObject
protected void initScopeInfo()
protected Object needsAnAlias(Object original)
By default we just add aliases for JMX like ObjectNames to have a canonical name alias
original
- the original name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |