BATCH-1153: Removed "id" from all <listener/> elements. <job-listener/> and <step-listener/> have an optional "id" since no id needed when defined within a bean.

This commit is contained in:
dhgarrette
2009-03-13 23:29:26 +00:00
parent 506950484a
commit cf062493e2
2 changed files with 7 additions and 4 deletions

View File

@@ -88,7 +88,9 @@
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="jobExecutionListenerType" />
<xsd:extension base="jobExecutionListenerType">
<xsd:attribute name="id" type="xsd:ID" use="optional" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
@@ -102,7 +104,9 @@
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="stepListenerType" />
<xsd:extension base="stepListenerType">
<xsd:attribute name="id" type="xsd:ID" use="optional" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
@@ -539,7 +543,6 @@
</xsd:complexType>
<xsd:complexType name="listenerType">
<xsd:attribute name="id" type="xsd:ID" />
<xsd:attribute name="ref" type="xsd:string">
<xsd:annotation>
<xsd:documentation>

View File

@@ -48,7 +48,7 @@
<step id="baseStep" abstract="true">
<listeners>
<listener id="skipCheckingListener" class="org.springframework.batch.sample.common.SkipCheckingListener"/>
<listener class="org.springframework.batch.sample.common.SkipCheckingListener"/>
<listener ref="promotionListener"/>
</listeners>
</step>