Refine contribution #3934

* Add default methods in all listener interfaces
* Remove usage of newly deprecated support classes

Issue #3924
This commit is contained in:
Mahmoud Ben Hassine
2021-09-10 21:46:42 +02:00
parent ba0900127d
commit f85a662ebf
46 changed files with 286 additions and 372 deletions

View File

@@ -14,7 +14,7 @@
<listeners merge="true">
<listener>
<beans:bean
class="org.springframework.batch.core.listener.JobExecutionListenerSupport" />
class="org.springframework.batch.core.configuration.xml.DummyJobExecutionListener" />
</listener>
</listeners>
</job>
@@ -27,7 +27,7 @@
<listeners>
<listener>
<beans:bean
class="org.springframework.batch.core.listener.JobExecutionListenerSupport" />
class="org.springframework.batch.core.configuration.xml.DummyJobExecutionListener" />
</listener>
</listeners>
</job>
@@ -88,7 +88,7 @@
<beans:list>
<job-listener>
<beans:bean
class="org.springframework.batch.core.listener.JobExecutionListenerSupport" />
class="org.springframework.batch.core.configuration.xml.DummyJobExecutionListener" />
</job-listener>
</beans:list>
</beans:property>

View File

@@ -11,7 +11,7 @@
<tasklet ref="dummyTasklet" />
<listeners>
<listener>
<beans:bean class="org.springframework.batch.core.listener.StepExecutionListenerSupport" />
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyStepExecutionListener" />
</listener>
</listeners>
</step>
@@ -19,7 +19,7 @@
<tasklet ref="dummyTasklet" />
<listeners>
<listener>
<beans:bean class="org.springframework.batch.core.listener.ChunkListenerSupport" />
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyChunkListener" />
</listener>
</listeners>
</step>
@@ -27,13 +27,13 @@
<tasklet ref="dummyTasklet">
<listeners>
<listener>
<beans:bean class="org.springframework.batch.core.listener.ChunkListenerSupport" />
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyChunkListener" />
</listener>
</listeners>
</tasklet>
<listeners>
<listener>
<beans:bean class="org.springframework.batch.core.listener.StepExecutionListenerSupport" />
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyStepExecutionListener" />
</listener>
</listeners>
</step>
@@ -49,7 +49,7 @@
</tasklet>
<listeners>
<listener>
<beans:bean class="org.springframework.batch.core.listener.StepExecutionListenerSupport" />
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyStepExecutionListener" />
</listener>
</listeners>
</step>

View File

@@ -22,7 +22,7 @@
<tasklet ref="dummyTasklet">
<listeners>
<listener>
<beans:bean class="org.springframework.batch.core.listener.StepExecutionListenerSupport" />
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyStepExecutionListener" />
</listener>
<listener ref="toplevel2" />
</listeners>
@@ -49,7 +49,7 @@
</job>
<step-listener id="toplevel1">
<beans:bean class="org.springframework.batch.core.listener.StepExecutionListenerSupport" />
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyStepExecutionListener" />
</step-listener>
<step-listener id="toplevel2">
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyAnnotationStepExecutionListener" />

View File

@@ -86,7 +86,7 @@
<transaction-attributes timeout="10"/>
<listeners>
<listener>
<beans:bean class="org.springframework.batch.core.listener.StepExecutionListenerSupport" />
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyStepExecutionListener" />
</listener>
</listeners>
</tasklet>
@@ -168,7 +168,7 @@
</chunk>
<listeners>
<listener>
<beans:bean class="org.springframework.batch.core.listener.StepExecutionListenerSupport"/>
<beans:bean class="org.springframework.batch.core.configuration.xml.DummyStepExecutionListener"/>
</listener>
</listeners>
<no-rollback-exception-classes>