|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--org.apache.turbine.modules.GenericLoader
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.
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
private boolean |
CACHE
|
private boolean |
reload
|
private static java.lang.String |
TURBINE_PACKAGE
Base packages path for Turbine |
Fields inherited from class java.util.Hashtable |
count, emptyEnumerator, emptyIterator, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES |
Constructor Summary | |
GenericLoader()
Basic constructor for creating a loader. |
|
GenericLoader(int i)
Basic constructor for creating a loader. |
Method Summary | |
boolean |
cache()
If set to true, then cache the Loader objects. |
abstract void |
exec(RunData data,
java.lang.String name)
Attempts to load and execute the external action that has been set. |
static java.lang.String |
getBasePackage()
Gets the base package where Turbine should find its default 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.util.Hashtable |
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
private boolean reload
private boolean CACHE
private static final java.lang.String TURBINE_PACKAGE
Constructor Detail |
public GenericLoader()
public GenericLoader(int i)
Method Detail |
public boolean cache()
public abstract void exec(RunData data, java.lang.String name) throws java.lang.Exception
java.lang.Exception
- a generic exception.public boolean reload()
public GenericLoader setReload(boolean reload)
reload
- True if the action must be marked as reload.public static java.lang.String getBasePackage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |