T
- the specialized assembler typepublic abstract class GenericLoader<T extends Assembler> extends Object
Modifier and Type | Field and Description |
---|---|
protected AssemblerBrokerService |
ab
The Assembler Broker Service
|
Constructor and Description |
---|
GenericLoader()
Basic constructor for creating a loader.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
exec(PipelineData pipelineData,
String name)
Attempts to load and execute the external action that has been
set.
|
protected T |
getAssembler(Class<T> type,
String name)
Pulls out an instance of the object by name.
|
static String |
getBasePackage()
Gets the base package where Turbine should find its default
modules.
|
static List<String> |
getPackages()
Gets the package list where Turbine should find its
modules.
|
boolean |
reload()
Returns whether or not this external action is reload itself.
|
GenericLoader<T> |
setReload(boolean reload)
Sets whether or not this external action is reload itself.
|
protected AssemblerBrokerService ab
public GenericLoader()
public abstract void exec(PipelineData pipelineData, String name) throws Exception
pipelineData
- the Turbine requestname
- the name of the assembler moduleException
- a generic exception.public boolean reload()
public GenericLoader<T> setReload(boolean reload)
reload
- True if the action must be marked as reload.public static String getBasePackage()
public static List<String> getPackages()
protected T getAssembler(Class<T> type, String name) throws Exception
type
- Type of the assembler.name
- Name of object instance.Exception
- a generic exception.Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.