org.jmonks.batch.framework.config
Class FrameworkConfig.JobConfigFactoryConfig

java.lang.Object
  extended byorg.jmonks.batch.framework.config.FrameworkConfig.JobConfigFactoryConfig
Enclosing class:
FrameworkConfig

public class FrameworkConfig.JobConfigFactoryConfig
extends java.lang.Object

JobConfigFactoryConfig class holds the configuration information required by Job configuration factories. Factory would need some properties like source of the job configuration, credentials to access the source based on the factory type. This object provides the factory class name and its supported property information.

This class will be accessible to all the classes in the framework and can be created only by the FrameworkConfig class.

Holds the following configuration defined in the framework configuration file.

      <job-config-factory-config job-config-factory-class-name="org.jmonks.batch.framework.config.xml.XMLJobConfigFactory">
           <property key="config-file-absolute-location">/batchserver/config/batch-config.xml</property>
           <!-- 
             Following is the another way to configure the XML Job configuration.
           <property key="config-file-classpath-location">org.jmonks.batch.framework.config.batch-config.xml</property> 
            -->
      </job-config-factory-config>
  


Method Summary
 java.lang.String getJobConfigFactoryClassName()
          Returns the class name of the factory used to read the job configuration.
 java.util.Map getJobConfigFactoryProperties()
          Returns the unmodifiable properties map used by the factory class to read the job configuration.
 java.lang.String toString()
           Returns the string representation of JobConfigFactoryConfig class in the format
{JobConfigFactoryConfig [configFactoryclassName = value] [properties = value]}
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getJobConfigFactoryClassName

public java.lang.String getJobConfigFactoryClassName()
Returns the class name of the factory used to read the job configuration.

Returns:
Returns the factory class name.

getJobConfigFactoryProperties

public java.util.Map getJobConfigFactoryProperties()
Returns the unmodifiable properties map used by the factory class to read the job configuration.


toString

public java.lang.String toString()

Returns the string representation of JobConfigFactoryConfig class in the format
{JobConfigFactoryConfig [configFactoryclassName = value] [properties = value]}

Returns:
Returns the string representation of JobConfigFactoryConfig.