|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.modules.GenericLoader<T>
public abstract class GenericLoader<T extends Assembler>
This is the base class for the loaders. It contains code that is used across all of the loaders. It also specifies the interface that is required to be called a Loader.
Field Summary | |
---|---|
protected AssemblerBrokerService |
ab
The Assembler Broker Service |
Constructor Summary | |
---|---|
GenericLoader()
Basic constructor for creating a loader. |
Method Summary | |
---|---|
void |
exec(PipelineData pipelineData,
String name)
Attempts to load and execute the external action that has been set. |
abstract void |
exec(RunData data,
String name)
Deprecated. Use of this method should be avoided. Use exec(PipelineData data, String name) instead. |
protected T |
getAssembler(String 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 |
setReload(boolean reload)
Sets whether or not this external action is reload itself. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AssemblerBrokerService ab
Constructor Detail |
---|
public GenericLoader()
Method Detail |
---|
public void exec(PipelineData pipelineData, String name) throws Exception
Exception
- a generic exception.@Deprecated public abstract void exec(RunData data, String name) throws Exception
exec(PipelineData data, String name)
instead.
Exception
- a generic exception.public boolean reload()
public GenericLoader 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(String type, String name) throws Exception
type
- Type of the assembler.name
- Name of object instance.
Exception
- a generic exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |