public interface TaskRegistry
| Modifier and Type | Method and Description |
|---|---|
<IN,OUT,TASK extends Task<? super IN,OUT>> |
find(Class<TASK> taskType)
Finds task by its type.
|
Task<?,?> |
find(String alias)
Finds task by its alias.
|
<IN,OUT> Task<IN,OUT> |
find(String alias,
Class<IN> inType,
Class<OUT> outType)
Finds task by its alias.
|
<IN,OUT,TASK extends Task<? super IN,OUT>> |
register(Class<TASK> taskType,
String... aliases)
Registers
NoArgConstructorTaskFactory for the task type. |
<IN,OUT,TASK extends Task<? super IN,OUT>,TASK_FACTORY extends TaskFactory<IN,OUT,TASK>> |
register(Class<TASK> taskDef,
TASK_FACTORY taskFactory)
Registers task factory in the registry.
|
<IN,OUT,TASK extends Task<? super IN,OUT>,TASK_FACTORY extends TaskFactory<IN,OUT,TASK>> |
register(TASK_FACTORY taskFactory)
Registers task factory in the registry.
|
<IN,OUT,TASK extends Task<? super IN,OUT>,TASK_FACTORY extends TaskFactory<IN,OUT,TASK>> TaskRegistry register(Class<TASK> taskDef, TASK_FACTORY taskFactory) throws InvalidTaskException
taskDef - Task created by this factorytaskFactory - Task facInvalidTaskException<IN,OUT,TASK extends Task<? super IN,OUT>,TASK_FACTORY extends TaskFactory<IN,OUT,TASK>> TaskRegistry register(TASK_FACTORY taskFactory) throws InvalidTaskException
TaskFactory#find(Class)
but can be instantiated by aliases provided by factory itself.taskFactory - InvalidTaskException<IN,OUT,TASK extends Task<? super IN,OUT>> TaskRegistry register(Class<TASK> taskType, String... aliases) throws InvalidTaskException
NoArgConstructorTaskFactory for the task type. Requires task to take no-arg constructor.task - aliases - Optional aliases for the taskInvalidTaskException<IN,OUT,TASK extends Task<? super IN,OUT>> TASK find(Class<TASK> taskType) throws InvalidTaskException
toolType - InvalidTaskExceptionTask<?,?> find(String alias) throws InvalidTaskException
alias - the aliasInvalidTaskException<IN,OUT> Task<IN,OUT> find(String alias, Class<IN> inType, Class<OUT> outType) throws InvalidTaskException
alias - the aliasinType - the input type of the taskoutType - the output type of the taskInvalidTaskException - in case that task input/output type is differentCopyright © 2015 JBoss by Red Hat. All rights reserved.