public class BatchConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BatchConfiguration.JobRepositoryType
Valid job repository types
|
Modifier and Type | Field and Description |
---|---|
static String |
JNDI_NAME
The key for the JNDI name.
|
static String |
JOB_REPOSITORY_TYPE
The key for the job repository type
|
Modifier and Type | Method and Description |
---|---|
Properties |
createProperties()
Creates
properties for the configuration. |
static BatchConfiguration |
getInstance()
Gets the instance of the configuration.
|
String |
put(String key,
String value)
Puts a key value pair into the configuration.
|
boolean |
requiresJndiName()
Checks to see if a JNDI name is required.
|
void |
setJndiName(String jndiName)
Sets the JNDI name.
|
void |
setJobRepositoryType(String jobRepositoryType)
Sets the job repository type.
|
public static final String JOB_REPOSITORY_TYPE
public static final String JNDI_NAME
public static BatchConfiguration getInstance()
public Properties createProperties()
properties
for the configuration.public boolean requiresJndiName()
JDBC
and a JNDI name was not previously set
.true
if a JNDI name is require, otherwise false
public String put(String key, String value)
key
- the keyvalue
- the valuenull
if there wasn't onepublic void setJobRepositoryType(String jobRepositoryType)
BatchConfiguration.getInstance().put(BatchConfiguration.JOB_REPOSITORY_TYPE, value);
jobRepositoryType
- the job repository typepublic void setJndiName(String jndiName)
BatchConfiguration.getInstance().put(BatchConfiguration.JNDI_NAME, value);
jndiName
- the JNDI nameCopyright © 2015 JBoss by Red Hat. All rights reserved.