|
||||||||||
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 | +--org.apache.turbine.modules.ScheduledJobLoader
ScheduledJobs loader class.
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
private static ScheduledJobLoader |
instance
The single instance of this class. |
Fields inherited from class org.apache.turbine.modules.GenericLoader |
CACHE, reload, TURBINE_PACKAGE |
Fields inherited from class java.util.Hashtable |
count, emptyEnumerator, emptyIterator, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES |
Constructor Summary | |
private |
ScheduledJobLoader()
These constructor's are private to force clients to use getInstance() to access this class. |
private |
ScheduledJobLoader(int i)
These constructor's are private to force clients to use getInstance() to access this class. |
Method Summary | |
private void |
addInstance(java.lang.String name,
ScheduledJob job)
Adds an instance of an object into the hashtable. |
void |
exec(JobEntry job,
java.lang.String name)
Attempts to load and execute the external ScheduledJob. |
void |
exec(RunData data,
java.lang.String name)
Attempts to load and execute the external ScheduledJob. |
static ScheduledJobLoader |
getInstance()
The method through which this class is accessed. |
ScheduledJob |
getInstance(java.lang.String name)
Pulls out an instance of the object by name. |
Methods inherited from class org.apache.turbine.modules.GenericLoader |
cache, getBasePackage, reload, setReload |
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 static ScheduledJobLoader instance
Constructor Detail |
private ScheduledJobLoader()
private ScheduledJobLoader(int i)
Method Detail |
private void addInstance(java.lang.String name, ScheduledJob job)
name
- Name of object.job
- Job to be associated with name.public void exec(JobEntry job, java.lang.String name) throws java.lang.Exception
job
- The JobEntry.name
- Name of object that will execute the job.java.lang.Exception
- a generic exception.public void exec(RunData data, java.lang.String name) throws java.lang.Exception
exec
in class GenericLoader
data
- Turbine information.name
- Name of object that will execute the job.java.lang.Exception
- a generic exception.public ScheduledJob getInstance(java.lang.String name) throws java.lang.Exception
name
- Name of object instance.java.lang.Exception
- a generic exception.public static ScheduledJobLoader getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |