|
|||||||||
| 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
| Nested Class Summary | |
|---|---|
protected static interface |
TaskContext.ResourceLoader
Platform specific resource loader. |
| Field Summary | |
|---|---|
protected static TaskContext.ResourceLoader |
DEFAULT_RESOURCE_LOADER
Default implementation. |
| Constructor Summary | |
|---|---|
protected |
TaskContext(Set<Class<? extends Task>> classes)
Creates a new instance. |
| Method Summary | |
|---|---|
Map<String,Task> |
getTaskMap()
Returns an unmodifiable map of task if and tasks. |
Collection<Task> |
getTasks()
Returns an unmodifiable collection of task instances. |
protected static Collection<Task> |
instantiate(Set<Class<? extends Task>> classes)
Creates a new instance of FSMContext. |
protected static Set<Class<? extends Task>> |
load(String contextPath,
ClassLoader classLoader)
Loads task classes. |
protected static Set<Class<? extends Task>> |
load(String contextPath,
ClassLoader classLoader,
TaskContext.ResourceLoader resourceLoader)
Loads task classes. |
static TaskContext |
newInstance(String contextPath)
|
static TaskContext |
newInstance(String contextPath,
ClassLoader classLoader)
|
static TaskContext |
newInstance(String contextPath,
ClassLoader classLoader,
TaskContext.ResourceLoader resourceLoader)
|
static TaskContext |
newInstance(String contextPath,
TaskContext.ResourceLoader resourceLoader)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final TaskContext.ResourceLoader DEFAULT_RESOURCE_LOADER
| Constructor Detail |
|---|
protected TaskContext(Set<Class<? extends Task>> classes)
classes - task classes| Method Detail |
|---|
protected static Set<Class<? extends Task>> load(String contextPath,
ClassLoader classLoader)
throws FSMException
contextPath - context pathclassLoader - class loader
FSMException - if an error occurs.
protected static Set<Class<? extends Task>> load(String contextPath,
ClassLoader classLoader,
TaskContext.ResourceLoader resourceLoader)
throws FSMException
contextPath - context pathclassLoader - class loaderresourceLoader - platform specific resource loader
FSMException - if an error occurs.
protected static Collection<Task> instantiate(Set<Class<? extends Task>> classes)
throws FSMException
FSMContext.
classes - pre-loaded task classes
FSMContext.
FSMException - if an error occurs.
public static TaskContext newInstance(String contextPath)
throws FSMException
contextPath -
FSMException
public static TaskContext newInstance(String contextPath,
TaskContext.ResourceLoader resourceLoader)
throws FSMException
contextPath - resourceLoader -
FSMException
public static TaskContext newInstance(String contextPath,
ClassLoader classLoader)
throws FSMException
contextPath - classLoader -
FSMException
public static TaskContext newInstance(String contextPath,
ClassLoader classLoader,
TaskContext.ResourceLoader resourceLoader)
throws FSMException
contextPath - classLoader - resourceLoader -
FSMException
public Collection<Task> getTasks()
throws FSMException
FSMException - if an error occurs.
public Map<String,Task> getTaskMap()
throws FSMException
FSMException - if an error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||