|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmonks.batch.framework.config.JobConfigFactory
JobConfigFactory returns the factory class instance which in turn returns the job configuration objects from the designated factory. This class determines the factory needs to be returned is based on the configFactoryClassName defined JobConfigFactoryConfig object passed as input parameter.
This will get the following XML block from framework configuration as JobConfigFactoryConfig
object.
<job-config-factory-config job-config-factory-class-name="org.jmonks.batch.framework.config.xml.XMLJobConfigFactory"> <property key="job-config-file-absolute-location">/batchserver/config/batch-config.xml</property> </job-config-factory-config>
Constructor Summary | |
JobConfigFactory()
|
Method Summary | |
abstract JobConfig |
getJobConfig(java.lang.String jobName)
Returns the requested JobConfig object from the defined factory. |
static JobConfigFactory |
getJobConfigFactory(FrameworkConfig.JobConfigFactoryConfig factoryConfig)
This factory method will return the appropriate job configuration factory based on the input values in JobConfigFactoryConfig object. |
protected abstract void |
init(java.util.Map configFactoryProps)
Method to initialize the factory using properies defined for this factory in framework configuration file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JobConfigFactory()
Method Detail |
public static JobConfigFactory getJobConfigFactory(FrameworkConfig.JobConfigFactoryConfig factoryConfig)
factoryConfig
- Job configuration factory config object contains the details need to
create the factory.
ConfigurationException
- If defined factory class is not a valid Job config factory and if any
required properties are missing for the factory.
java.lang.IllegalArgumentException
- If input factory configuration is null.public abstract JobConfig getJobConfig(java.lang.String jobName)
jobName
- Name of the job whose configuration is needed.
protected abstract void init(java.util.Map configFactoryProps)
configFactoryProps
- Map consists of all the properties defined for this factory.
ConfigurationException
- If required properties by the factory are missing.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |