org.jmonks.batch.framework.config.xml
Class XMLJobControllerConfig

java.lang.Object
  extended byorg.jmonks.batch.framework.config.JobControllerConfig
      extended byorg.jmonks.batch.framework.config.xml.XMLJobControllerConfig

public abstract class XMLJobControllerConfig
extends JobControllerConfig

XMLJobControllerConfig responsible to build the controller specific JobControllerConfig objects from the given XML. Look at getJobControllerConfig(Element) to understand on how this is going to get the correct job controller config instance.

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Field Summary
static java.lang.String JOB_CONTROLLER_CLASS_ATTRIBUTE_NAME
          Attribute name that identifies the job controller class name which is job-controller-class-name.
static java.lang.String JOB_CONTROLLER_CONFIG_FACTORY_CLASS_ATTRIBUTE_NAME
          Element name that identifies the job controller configuration class name which is xml-factory-config-class-name.
static java.lang.String JOB_CONTROLLER_ELEMENT_NAME
          Element name that identifies the job controller configuration which is job-controller.
 
Fields inherited from class org.jmonks.batch.framework.config.JobControllerConfig
jobControllerClassName, jobControllerConfigProps
 
Constructor Summary
XMLJobControllerConfig()
           
 
Method Summary
static JobControllerConfig getJobControllerConfig(org.w3c.dom.Element controllerConfigElement)
           Factory method creates and returns the controller specific controller config object from the following XML block from the job configuration file.
 
Methods inherited from class org.jmonks.batch.framework.config.JobControllerConfig
getJobControllerClasName, getJobControllerConfigProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_CONTROLLER_ELEMENT_NAME

public static final java.lang.String JOB_CONTROLLER_ELEMENT_NAME
Element name that identifies the job controller configuration which is job-controller.

See Also:
Constant Field Values

JOB_CONTROLLER_CLASS_ATTRIBUTE_NAME

public static final java.lang.String JOB_CONTROLLER_CLASS_ATTRIBUTE_NAME
Attribute name that identifies the job controller class name which is job-controller-class-name.

See Also:
Constant Field Values

JOB_CONTROLLER_CONFIG_FACTORY_CLASS_ATTRIBUTE_NAME

public static final java.lang.String JOB_CONTROLLER_CONFIG_FACTORY_CLASS_ATTRIBUTE_NAME
Element name that identifies the job controller configuration class name which is xml-factory-config-class-name.

See Also:
Constant Field Values
Constructor Detail

XMLJobControllerConfig

public XMLJobControllerConfig()
Method Detail

getJobControllerConfig

public static JobControllerConfig getJobControllerConfig(org.w3c.dom.Element controllerConfigElement)

Factory method creates and returns the controller specific controller config object from the following XML block from the job configuration file. This looks for the controller class name and tries to find specific controller config object for this controller and defined for the XML factory in framework configuration file.

      <job-controller job-controller-class-name="org.jmonks.batch.framework.controller.basic.BasicJobController">
           <property key="basic-job-controller-config1">config-value1</property>
       </job-controller>
  

Returns:
Returns the controller specific controller config object.
Throws:
ConfigurationException - If controller config class name is not defined or controller specific config object cannot be found in framework controller configuration.