| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<java.lang.String> |
TaskContext.getClassNames(java.lang.String contextPath,
ResourceLoader resourceLoader)
Loads task classes.
|
java.util.Map<java.lang.String,Task> |
TaskContext.getTasks()
Returns a map of task id and task instances.
|
java.io.InputStream |
ResourceLoader.load(java.lang.String resourceName)
Loads resource denoted by given
resourceName. |
java.io.InputStream |
FileResourceLoader.load(java.lang.String resourceName) |
java.io.InputStream |
ClassResourceLoader.load(java.lang.String resourceName) |
protected java.lang.Class<?> |
TaskContext.loadClass(java.lang.String className)
Load class named as given
className. |
abstract void |
Task.perform(TransitionContext context)
Performs desired actions for given
transition. |
void |
SwitchTask.perform(TransitionContext context) |
protected void |
Machine.perform(TransitionContext context,
Task... tasks)
Performs each of given
tasks with specified
context. |
protected abstract void |
SwitchTask.performOff(TransitionContext context)
Performs for switching off.
|
protected void |
SimpleTask.performOff(TransitionContext context) |
protected abstract void |
SwitchTask.performOn(TransitionContext context)
Performs for switching on.
|
abstract void |
Task.prepare(TransitionContext context)
Prepares for given
context. |
void |
SwitchTask.prepare(TransitionContext context) |
protected abstract void |
SwitchTask.prepareOff(TransitionContext context)
Prepares for switching off.
|
protected void |
SimpleTask.prepareOff(TransitionContext context) |
protected abstract void |
SwitchTask.prepareOn(TransitionContext context)
Prepares for switching on.
|
void |
TransitionContext.setPerformAfter(java.lang.String previousTaskId)
Makes sure the task calling this method be performed after the task
identified by
sourceTaskId. |
void |
TransitionContext.setPerformBefore(java.lang.String nextTaskId)
Make sure the task calling this method be performed before the task
identified by
targetTaskId. |
void |
Machine.setState(State state)
Sets state.
|
Copyright © 2011. All Rights Reserved.