|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Controller
A controller.
The controller is the core component for keeping track of contexts to make sure the configuration and lifecycle are done in the correct order including dependencies and classloading considerations.
| Method Summary | |
|---|---|
void |
addAlias(Object alias,
Object original)
Add alias. |
void |
addState(ControllerState state,
ControllerState before)
Add a state. |
void |
change(ControllerContext context,
ControllerState state)
Change a context to the given state |
void |
enableOnDemand(ControllerContext context)
Enable an on demand context |
ControllerContext |
getContext(Object name,
ControllerState state)
Get a context |
Set<ControllerContext> |
getContextsByState(ControllerState state)
Get the contexts in certain state |
ControllerContext |
getInstalledContext(Object name)
Get an installed context |
Set<ControllerContext> |
getNotInstalled()
Get the contexts not installed |
List<ControllerState> |
getStates()
Get the states. |
void |
install(ControllerContext context)
Install a context |
boolean |
isShutdown()
Whether the controller is shutdown |
void |
removeAlias(Object alias)
Remove alias. |
void |
shutdown()
Shutdown the controller |
ControllerContext |
uninstall(Object name)
Uninstall a context |
| Methods inherited from interface org.jboss.util.JBossInterface |
|---|
clone, toShortString, toShortString |
| Method Detail |
|---|
void install(ControllerContext context)
throws Throwable
context - the context
Throwable - for any error
void change(ControllerContext context,
ControllerState state)
throws Throwable
context - the contextstate - the state
Throwable - for any error
void enableOnDemand(ControllerContext context)
throws Throwable
context - the context
Throwable - for any errorControllerContext uninstall(Object name)
name - the name of the component
void addAlias(Object alias,
Object original)
throws Throwable
alias - the alias to addoriginal - original name
Throwable - for any errorvoid removeAlias(Object alias)
alias - alias to remove
ControllerContext getContext(Object name,
ControllerState state)
name - the name of the componentstate - the state (pass null for any state)
ControllerContext getInstalledContext(Object name)
name - the name of the component
Set<ControllerContext> getNotInstalled()
void addState(ControllerState state,
ControllerState before)
state - the state to addbefore - the state to add before or null to add to the endList<ControllerState> getStates()
Set<ControllerContext> getContextsByState(ControllerState state)
state - controller state to get contexts for
boolean isShutdown()
void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||