BATCH-1007: Job and Step now have consistent attribute names for referencing the job repository, they're both 'job-repository' now. The docs have been updated accordingly.
This commit is contained in:
@@ -49,10 +49,7 @@ public class JobParser extends AbstractBeanDefinitionParser {
|
||||
String jobName = element.getAttribute("id");
|
||||
builder.addConstructorArgValue(jobName);
|
||||
|
||||
String repositoryAttribute = element.getAttribute("repository");
|
||||
if (!StringUtils.hasText(repositoryAttribute)) {
|
||||
repositoryAttribute = "jobRepository";
|
||||
}
|
||||
String repositoryAttribute = element.getAttribute("job-repository");
|
||||
builder.addPropertyReference("jobRepository", repositoryAttribute);
|
||||
|
||||
String restartableAttribute = element.getAttribute("restartable");
|
||||
|
||||
@@ -30,15 +30,7 @@
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="flowType">
|
||||
<xsd:attribute name="id" type="xsd:ID" use="required" />
|
||||
<xsd:attribute name="repository" type="xsd:string"
|
||||
use="optional">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
A reference to a JobRepository bean definition. Defaults to "jobRepository".
|
||||
]]>
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attributeGroup ref="jobRepository"/>
|
||||
<xsd:attribute name="incrementer" type="xsd:string"
|
||||
use="optional">
|
||||
<xsd:annotation>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<beans:import resource="common-context.xml" />
|
||||
|
||||
<job id="job" incrementer="testIncrementer" repository="jobRepository">
|
||||
<job id="job" incrementer="testIncrementer" job-repository="jobRepository">
|
||||
<step name="step1" tasklet="tasklet"/>
|
||||
<listeners>
|
||||
<listener after-method="afterJob" ref="testListener"/>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</beans:property>
|
||||
</beans:bean>
|
||||
|
||||
<job id="job" repository="thisRepository">
|
||||
<job id="job" job-repository="thisRepository">
|
||||
<step name="step1" />
|
||||
</job>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user