|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.treesched.ScheduleFactory
Create a schedule from a name. Useful for building shcedules from configuration files.
| Method Summary | |
void |
addFactoryDefinition(java.lang.String objName,
java.lang.Class objClass)
Adds a new schedule class definition to the factory. |
void |
addFile(java.io.File file)
Add a property file of class definitions to the factory. |
void |
addProperties(java.util.Properties props)
Add a property set of class definitions to the factory. |
void |
addResource(java.lang.String classDefFileName)
Add a resource properties file of class definitions to the factory. |
void |
checkTaskClass(java.lang.Class theClass)
Checks whether or not a class is suitable for being a schedule. |
Schedule |
createSchedule(java.lang.String name)
The factory method. |
static ScheduleFactory |
getInstance()
Get the singleton instance of the factory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ScheduleFactory getInstance()
public void addResource(java.lang.String classDefFileName)
classDefFileName - A property file of class names.public void addFile(java.io.File file)
file - A property file.public void addProperties(java.util.Properties props)
props - Property class definitions.
public void addFactoryDefinition(java.lang.String objName,
java.lang.Class objClass)
throws ScheduleFactoryException
ScheduleFactoryException - if the class is unsuitable for being a
schedule.
public void checkTaskClass(java.lang.Class theClass)
throws ScheduleFactoryException
theClass - The class to be checked.
Must not be null.
ScheduleFactoryException - if the class is unsuitable for being an Ant
task. An error level message is logged before
this exception is thrown.
public Schedule createSchedule(java.lang.String name)
throws ScheduleFactoryException
name - The name of the scheudle.
ScheduleFactoryException - If the schedule couldn't be created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||