File tree Expand file tree Collapse file tree 7 files changed +8
-49
lines changed
spring-batch-core/src/test/resources
org/springframework/batch/core
spring-batch-samples/src/main/resources
org/springframework/batch/samples/restart/stop Expand file tree Collapse file tree 7 files changed +8
-49
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<beans xmlns =" http://www.springframework.org/schema/beans"
3
- xmlns:aop=" http://www.springframework.org/schema/aop"
4
- xmlns:tx=" http://www.springframework.org/schema/tx"
5
3
xmlns:p=" http://www.springframework.org/schema/p"
6
4
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
7
5
xsi:schemaLocation="
8
- http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
9
- http://www.springframework.org/schema/aop https://www.springframework.org/schema/aop/spring-aop.xsd
10
- http://www.springframework.org/schema/tx https://www.springframework.org/schema/tx/spring-tx.xsd" >
11
-
12
- <bean
13
- class=" org.springframework.batch.core.configuration.support.JobRegistrySmartInitializingSingleton" >
14
- <property name =" jobRegistry" ref =" registry" />
15
- </bean >
6
+ http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd" >
16
7
17
8
<bean id =" registry"
18
9
class=" org.springframework.batch.core.configuration.support.MapJobRegistry" />
Original file line number Diff line number Diff line change 11
11
</property >
12
12
</bean >
13
13
14
- <bean class =" org.springframework.batch.core.configuration.support.JobRegistrySmartInitializingSingleton" >
15
- <property name =" jobRegistry" ref =" jobRegistry" />
16
- </bean >
17
-
18
14
<bean id =" jobRegistry" class =" org.springframework.batch.core.configuration.support.MapJobRegistry" />
19
15
20
16
</beans >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<beans xmlns =" http://www.springframework.org/schema/beans"
3
- xmlns:aop=" http://www.springframework.org/schema/aop"
4
- xmlns:tx=" http://www.springframework.org/schema/tx"
5
- xmlns:p=" http://www.springframework.org/schema/p"
6
3
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
7
4
xsi:schemaLocation="
8
- http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
9
- http://www.springframework.org/schema/aop https://www.springframework.org/schema/aop/spring-aop.xsd
10
- http://www.springframework.org/schema/tx https://www.springframework.org/schema/tx/spring-tx.xsd" >
5
+ http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd" >
11
6
12
7
<import resource =" test-environment.xml" />
13
8
<import resource =" job.xml" />
14
9
<import resource =" job2.xml" />
15
-
10
+
16
11
<bean id =" jobRegistry" class =" org.springframework.batch.core.configuration.support.MapJobRegistry" />
17
-
18
- <bean class =" org.springframework.batch.core.configuration.support.JobRegistrySmartInitializingSingleton" >
19
- <property name =" jobRegistry" ref =" jobRegistry" />
20
- </bean >
21
12
22
13
</beans >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <beans xmlns =" http://www.springframework.org/schema/beans" xmlns : aop =" http://www.springframework.org/schema/aop"
3
- xmlns:tx=" http://www.springframework.org/schema/tx" xmlns : p =" http://www.springframework.org/schema/p"
2
+ <beans xmlns =" http://www.springframework.org/schema/beans"
4
3
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
5
4
xsi:schemaLocation="
6
- http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
7
- http://www.springframework.org/schema/aop https://www.springframework.org/schema/aop/spring-aop.xsd
8
- http://www.springframework.org/schema/tx https://www.springframework.org/schema/tx/spring-tx.xsd" >
5
+ http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd" >
9
6
10
7
<import resource =" test-environment-with-registry.xml" />
11
8
12
- <bean class =" org.springframework.batch.core.configuration.support.JobRegistrySmartInitializingSingleton" >
13
- <property name =" jobRegistry" ref =" jobRegistry" />
14
- </bean >
15
-
16
9
</beans >
Original file line number Diff line number Diff line change 6
6
7
7
<import resource =" classpath:data-source-context.xml" />
8
8
9
- <bean class =" org.springframework.batch.core.configuration.support.JobRegistrySmartInitializingSingleton" >
10
- <property name =" jobRegistry" ref =" jobRegistry" />
11
- </bean >
12
-
13
9
<bean id =" jobRepository"
14
10
class=" org.springframework.batch.core.repository.support.JdbcJobRepositoryFactoryBean"
15
11
p:dataSource-ref=" dataSource" p : transactionManager-ref =" transactionManager" />
Original file line number Diff line number Diff line change 5
5
6
6
<import resource =" classpath:data-source-context.xml" />
7
7
8
- <bean class =" org.springframework.batch.core.configuration.support.JobRegistrySmartInitializingSingleton" >
9
- <property name =" jobRegistry" ref =" jobRegistry" />
10
- </bean >
11
-
12
8
<bean id =" jobRepository"
13
9
class =" org.springframework.batch.core.repository.support.JdbcJobRepositoryFactoryBean"
14
10
p : dataSource-ref =" dataSource" p : transactionManager-ref =" transactionManager" />
34
30
<property name =" jobRepository" ref =" jobRepository" />
35
31
<property name =" restartable" value =" true" />
36
32
</bean >
37
-
33
+
38
34
<bean id =" taskletStep" class =" org.springframework.batch.core.step.tasklet.TaskletStep" abstract =" true" >
39
35
<property name =" transactionManager" ref =" transactionManager" />
40
36
<property name =" jobRepository" ref =" jobRepository" />
41
37
<property name =" allowStartIfComplete" value =" true" />
42
38
</bean >
43
-
39
+
44
40
<bean id =" simpleStep" class =" org.springframework.batch.core.step.factory.FaultTolerantStepFactoryBean" abstract =" true" >
45
41
<property name =" transactionManager" ref =" transactionManager" />
46
42
<property name =" jobRepository" ref =" jobRepository" />
47
43
</bean >
48
44
49
45
<bean id =" infiniteLoopJob" parent =" simpleJob" >
50
46
<property name =" jobParametersIncrementer" >
51
- <bean class =" org.springframework.batch.core.launch.support.RunIdIncrementer" />
47
+ <bean class =" org.springframework.batch.core.launch.support.RunIdIncrementer" />
52
48
</property >
53
49
<property name =" steps" >
54
50
<bean id =" infiniteStep" parent =" simpleStep" >
Original file line number Diff line number Diff line change 6
6
7
7
<import resource =" data-source-context.xml" />
8
8
9
- <bean class =" org.springframework.batch.core.configuration.support.JobRegistrySmartInitializingSingleton" >
10
- <property name =" jobRegistry" ref =" jobRegistry" />
11
- </bean >
12
-
13
9
<bean id =" jobRepository"
14
10
class=" org.springframework.batch.core.repository.support.JdbcJobRepositoryFactoryBean"
15
11
p:dataSource-ref=" dataSource" p : transactionManager-ref =" transactionManager" />
You can’t perform that action at this time.
0 commit comments