|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.spring.batch.DefaultPropertiesLoader
A properties configuration loader that loads 2 files.
The following files are loaded in this order:
confDir/jobName.toLowerCase()-conf.properties
Constructor Summary | |
DefaultPropertiesLoader()
|
Method Summary | |
Properties |
loadProperties(File confDir,
String jobName)
Load a properties file that contains the configuration. |
Properties |
loadProperties(File confDir,
String jobName,
String globalPropertyFile)
Loads properties from several files. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultPropertiesLoader()
Method Detail |
public Properties loadProperties(File confDir, String jobName) throws FileNotFoundException, IOException
PropertiesLoader
loadProperties
in interface PropertiesLoader
confDir
- The batch configuration directory.jobName
- The job name.
IOException
- if an io error occurs.
FileNotFoundException
- if the property file doesn't exists.loadProperties(java.io.File,
java.lang.String, java.lang.String)
public Properties loadProperties(File confDir, String jobName, String globalPropertyFile) throws FileNotFoundException, IOException
The following files are loaded in this order:
confDir/jobName.toLowerCase()-conf.properties
loadProperties
in interface PropertiesLoader
confDir
- The configuration directory.jobName
- The main job name.globalPropertyFile
- The global property file, used to centralized parameters for several batches. Can be null.
FileNotFoundException
- if the property file doesn't exists.
IOException
- if an io error occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |