|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.jinahya.util.fsm.TaskContext
public class TaskContext
| Constructor Summary | |
|---|---|
TaskContext(Set<String> classNames)
Creates a new instance. |
|
| Method Summary | |
|---|---|
static Set<String> |
getClassNames(String contextPath,
ResourceLoader resourceLoader)
Loads task classes. |
Map<String,Task> |
getTaskMap()
Returns a map of task id and task instances. |
Collection<Task> |
getTasks()
Returns a collection of task instances. |
protected Class<?> |
loadClass(String className)
Load class named as given className. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskContext(Set<String> classNames)
classNames - task class names| Method Detail |
|---|
public static Set<String> getClassNames(String contextPath,
ResourceLoader resourceLoader)
throws FSMException
contextPath - context pathresourceLoader - resource loader
FSMException - if an error occurs.
public final Map<String,Task> getTaskMap()
throws FSMException
FSMException - if an error occurs.
public final Collection<Task> getTasks()
throws FSMException
FSMException - if an error occurs.
protected Class<?> loadClass(String className)
throws FSMException
className. Default implementation
uses Class.forName(java.lang.String). Override this method if
any customizations are requires.
className - class name
FSMException - if an error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||