public class BatchPropertyContext
extends java.lang.Object
Context object to hold parsed JSR-352 batch properties, mapping properties to beans / "batch artifacts". Used internally when parsing property tags from a batch configuration file and to obtain corresponding values when injecting into batch artifacts.
| Constructor and Description |
|---|
BatchPropertyContext() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties |
getArtifactProperties(java.lang.String artifactName)
Obtains the batch
Properties for the provided artifact name. |
java.util.Properties |
getJobProperties()
Obtains the Job level properties.
|
java.util.Properties |
getStepArtifactProperties(java.lang.String stepName,
java.lang.String artifactName)
Obtains the batch
Properties for the provided Step and artifact name. |
java.util.Properties |
getStepProperties(java.lang.String stepName)
Obtains the Step level properties for the provided Step name.
|
void |
setArtifactProperties(java.util.Map<java.lang.String,java.util.Properties> properties)
Adds non-step artifact properties to the context.
|
void |
setJobProperties(java.util.Properties properties)
Adds Job level properties to the context.
|
void |
setStepArtifactProperties(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Properties>> properties)
Adds Step artifact properties to the context.
|
void |
setStepProperties(java.util.Map<java.lang.String,java.util.Properties> properties)
Adds Step level properties to the context.
|
void |
setStepProperties(java.lang.String stepName,
java.util.Properties properties)
Convenience method to set step level properties.
|
public java.util.Properties getJobProperties()
Obtains the Job level properties.
public void setJobProperties(java.util.Properties properties)
Adds Job level properties to the context.
properties - the job Properties to addpublic java.util.Properties getStepProperties(java.lang.String stepName)
Obtains the Step level properties for the provided Step name.
stepName - the Step name to obtain properties forProperties for the Steppublic void setStepProperties(java.util.Map<java.lang.String,java.util.Properties> properties)
Adds Step level properties to the context.
properties - the step Properties to addpublic void setStepProperties(java.lang.String stepName,
java.util.Properties properties)
Convenience method to set step level properties. Simply wraps the provided parameters
and delegates to setStepProperties(java.util.Map).
stepName - the step name to set Properties forproperties - the Properties to setpublic java.util.Properties getArtifactProperties(java.lang.String artifactName)
Obtains the batch Properties for the provided artifact name.
artifactName - the batch artifact to obtain properties forProperties for the provided batch artifactpublic void setArtifactProperties(java.util.Map<java.lang.String,java.util.Properties> properties)
Adds non-step artifact properties to the context.
properties - the artifact Properties to addpublic java.util.Properties getStepArtifactProperties(java.lang.String stepName,
java.lang.String artifactName)
Obtains the batch Properties for the provided Step and artifact name.
stepName - the Step name the artifact is associated withartifactName - the artifact name to obtain Properties forProperties for the provided Step artifactpublic void setStepArtifactProperties(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Properties>> properties)
Adds Step artifact properties to the context.
properties - the step artifact Properties to add