diff --git a/dictionary.txt b/dictionary.txt
index 2b131be9f..9aba8f63e 100644
--- a/dictionary.txt
+++ b/dictionary.txt
@@ -101,3 +101,213 @@ ajax
javascript
chris
schaefer
+unescaped
+namespace
+autowired
+registrar
+ref
+configurer
+callable
+classpath
+config
+registries
+stephane
+nicoll
+href
+fischer
+sebastien
+gerard
+xml
+gt
+garrette
+thomas
+risberg
+josh
+preconfigured
+lob
+hydrated
+hydrate
+subflow
+validator
+subflows
+wildcard
+foo
+wildcards
+pre
+morten
+andersen
+gott
+validators
+enum
+init
+elvis
+refactored
+autowire
+batchlet
+upfront
+glenn
+renfro
+arg
+chunking
+spec
+honour
+ids
+exiter
+stdin
+stijn
+maller
+schipp
+javadocs
+prioritising
+recognise
+summarise
+summarising
+analyse
+no-op
+multicaster
+optimisation
+deserializes
+david
+turanski
+serializer
+multi
+charsets
+jettison
+deserialization
+jimmy
+praet
+behaviour
+unregistration
+initialised
+hydrating
+aop
+analysed
+ignorable
+tarred
+generics
+memorise
+modularise
+skippability
+panicking
+eric
+evans
+deserialize
+wonky
+rawtypes
+internet
+inline
+foobar
+sergey
+shcherbakov
+jsr
+blah
+txt
+spam
+punk
+min
+downgrade
+weirdnesses
+varchar
+warmup
+tobias
+flohre
+backstop
+timestamp
+recognised
+attrs
+ouch
+tripped
+barf
+baz
+phil
+webb
+costin
+leau
+hsql
+vs
+payload
+mongo
+cypher
+iterable
+anatoly
+polinsky
+sybase
+thexton
+postgres
+luke
+taylor
+rowid
+num
+externalized
+juergen
+hoeller
+capitalised
+capitalisation
+tokenization
+tomas
+slanina
+tokenizing
+alef
+arjen
+arendsen
+poutsma
+levenshtein
+unset
+unparseable
+tokenizers
+parseable
+regex
+customisation
+waseem
+malik
+synced
+charset
+juliusz
+brzostek
+marshallers
+unmarshaller
+marshaller
+uri
+namespaces
+xmlns
+woodstox
+inits
+marshalled
+precache
+douglas
+kaminsky
+endeavour
+uncategorised
+specialisation
+tenuous
+checkpointing
+mutex
+signalling
+customise
+rethrowing
+queueing
+runnables
+resourceless
+initialisation
+args
+params
+delegator
+val
+asc
+desc
+unmarshalling
+unmarshallers
+resettable
+dataset
+signalled
+injectable
+asynch
+flakey
+usecase
+tokenize
+debit
+isin
+fieldsets
+mockito
+mappers
+adhoc
diff --git a/spring-batch-core-tests/.springBeans b/spring-batch-core-tests/.springBeans
index 5f141c431..5dbfbb4be 100644
--- a/spring-batch-core-tests/.springBeans
+++ b/spring-batch-core-tests/.springBeans
@@ -1,240 +1,308 @@
-
-
- 1
-
-
-
-
-
-
- src/test/resources/data-source-context.xml
- src/test/resources/simple-job-launcher-context.xml
- src/test/resources/org/springframework/batch/core/test/step/SplitJobMapRepositoryIntegrationTests-context.xml
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
- true
- false
-
-
-
-
-
+
+
+ 1
+
+
+
+
+
+
+ src/test/resources/data-source-context.xml
+ src/test/resources/simple-job-launcher-context.xml
+ src/test/resources/org/springframework/batch/core/test/step/SplitJobMapRepositoryIntegrationTests-context.xml
+ src/main/resources/META-INF/batch/footballJob.xml
+ src/main/resources/META-INF/batch/footballSkipJob.xml
+ src/main/resources/META-INF/batch/parallelJob.xml
+ src/main/resources/META-INF/batch/timeoutJob.xml
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
+ true
+ false
+
+
+
+
+
+
+
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/Game.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/Game.java
index 1f74b2c58..77b6b6d16 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/Game.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/Game.java
@@ -18,6 +18,7 @@ package org.springframework.batch.core.test.football;
import java.io.Serializable;
+@SuppressWarnings("serial")
public class Game implements Serializable {
private String id;
@@ -260,6 +261,7 @@ public class Game implements Serializable {
this.totalTd = totalTd;
}
+ @Override
public String toString() {
return "Game: ID=" + id + " " + team + " vs. " + opponent + " - " + year;
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/Player.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/Player.java
index 5314be5ba..c220b2fa0 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/Player.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/Player.java
@@ -18,6 +18,7 @@ package org.springframework.batch.core.test.football;
import java.io.Serializable;
+@SuppressWarnings("serial")
public class Player implements Serializable {
private String id;
@@ -27,6 +28,7 @@ public class Player implements Serializable {
private int birthYear;
private int debutYear;
+ @Override
public String toString() {
return "PLAYER:id=" + id + ",Last Name=" + lastName +
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/PlayerSummary.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/PlayerSummary.java
index 2d906a5dd..fcc7445b5 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/PlayerSummary.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/football/PlayerSummary.java
@@ -113,6 +113,7 @@ public class PlayerSummary {
}
+ @Override
public String toString() {
return "Player Summary: ID=" + id + " Year=" + year + "[" + completes + ";" + attempts + ";" + passingYards +
";" + passingTd + ";" + interceptions + ";" + rushes + ";" + rushYards + ";" + receptions +
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/LoggingItemWriter.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/LoggingItemWriter.java
index beb53ecfd..9c59d0a0d 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/LoggingItemWriter.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/LoggingItemWriter.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.test.timeout;
import java.util.List;
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/SleepingItemProcessor.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/SleepingItemProcessor.java
index 3592086bc..b6281cb4f 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/SleepingItemProcessor.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/SleepingItemProcessor.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.test.timeout;
import org.springframework.batch.item.ItemProcessor;
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/SleepingTasklet.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/SleepingTasklet.java
index 5a09056c6..58267ad8f 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/SleepingTasklet.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/core/test/timeout/SleepingTasklet.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.test.timeout;
import org.springframework.batch.core.StepContribution;
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/FootballExceptionHandler.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/FootballExceptionHandler.java
index a1ff7afcb..9a8131c77 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/FootballExceptionHandler.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/FootballExceptionHandler.java
@@ -26,6 +26,7 @@ public class FootballExceptionHandler implements ExceptionHandler {
private static final Log logger = LogFactory
.getLog(FootballExceptionHandler.class);
+ @Override
public void handleException(RepeatContext context, Throwable throwable)
throws Throwable {
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/GameFieldSetMapper.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/GameFieldSetMapper.java
index 197d4f525..de7143f94 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/GameFieldSetMapper.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/GameFieldSetMapper.java
@@ -22,6 +22,7 @@ import org.springframework.batch.item.file.transform.FieldSet;
public class GameFieldSetMapper implements FieldSetMapper {
+ @Override
public Game mapFieldSet(FieldSet fs) {
if(fs == null){
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcGameDao.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcGameDao.java
index 2e8e48ef4..7d6589cec 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcGameDao.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcGameDao.java
@@ -29,6 +29,7 @@ public class JdbcGameDao extends JdbcDaoSupport implements ItemWriter {
private SimpleJdbcInsert insertGame;
+ @Override
protected void initDao() throws Exception {
super.initDao();
insertGame = new SimpleJdbcInsert(getDataSource()).withTableName("GAMES").usingColumns("player_id", "year_no",
@@ -36,6 +37,7 @@ public class JdbcGameDao extends JdbcDaoSupport implements ItemWriter {
"rushes", "rush_yards", "receptions", "receptions_yards", "total_td");
}
+ @Override
public void write(List extends Game> games) {
for (Game game : games) {
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcPlayerDao.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcPlayerDao.java
index 281f346b1..cd059c423 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcPlayerDao.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcPlayerDao.java
@@ -35,7 +35,8 @@ public class JdbcPlayerDao implements PlayerDao {
private NamedParameterJdbcTemplate namedParameterJdbcTemplate;
- public void savePlayer(Player player) {
+ @Override
+ public void savePlayer(Player player) {
namedParameterJdbcTemplate.update(INSERT_PLAYER, new BeanPropertySqlParameterSource(player));
}
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcPlayerSummaryDao.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcPlayerSummaryDao.java
index beb8bb40e..953ffa5fb 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcPlayerSummaryDao.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/JdbcPlayerSummaryDao.java
@@ -34,7 +34,8 @@ public class JdbcPlayerSummaryDao implements ItemWriter {
private NamedParameterJdbcTemplate namedParameterJdbcTemplate;
- public void write(List extends PlayerSummary> summaries) {
+ @Override
+ public void write(List extends PlayerSummary> summaries) {
for (PlayerSummary summary : summaries) {
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerFieldSetMapper.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerFieldSetMapper.java
index 6b40468b4..0b517703b 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerFieldSetMapper.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerFieldSetMapper.java
@@ -22,6 +22,7 @@ import org.springframework.batch.item.file.transform.FieldSet;
public class PlayerFieldSetMapper implements FieldSetMapper {
+ @Override
public Player mapFieldSet(FieldSet fs) {
if(fs == null){
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerItemWriter.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerItemWriter.java
index 13eda4b09..16f53d616 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerItemWriter.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerItemWriter.java
@@ -26,6 +26,7 @@ public class PlayerItemWriter implements ItemWriter {
private PlayerDao playerDao;
+ @Override
public void write(List extends Player> players) throws Exception {
for (Player player : players) {
playerDao.savePlayer(player);
diff --git a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerSummaryMapper.java b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerSummaryMapper.java
index ae14ccef0..2e72d3dfc 100644
--- a/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerSummaryMapper.java
+++ b/spring-batch-core-tests/src/main/java/org/springframework/batch/sample/domain/football/internal/PlayerSummaryMapper.java
@@ -32,6 +32,7 @@ public class PlayerSummaryMapper implements ParameterizedRowMapper {
/* (non-Javadoc)
* @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
*/
- public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
+ @Override
+ public PlayerSummary mapRow(ResultSet rs, int rowNum) throws SQLException {
PlayerSummary summary = new PlayerSummary();
diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/ConcurrentMapExecutionContextDaoTests.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/ConcurrentMapExecutionContextDaoTests.java
index 1fe63dd59..c8812091f 100644
--- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/ConcurrentMapExecutionContextDaoTests.java
+++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/ConcurrentMapExecutionContextDaoTests.java
@@ -60,8 +60,9 @@ public class ConcurrentMapExecutionContextDaoTests {
public void testTransactionalSaveUpdate() throws Exception {
final StepExecution stepExecution = new StepExecution("step", new JobExecution(11L));
stepExecution.setId(123L);
- new TransactionTemplate(transactionManager).execute(new TransactionCallback() {
- public Object doInTransaction(TransactionStatus status) {
+ new TransactionTemplate(transactionManager).execute(new TransactionCallback() {
+ @Override
+ public Void doInTransaction(TransactionStatus status) {
stepExecution.getExecutionContext().put("foo", "bar");
dao.saveExecutionContext(stepExecution);
return null;
@@ -89,6 +90,7 @@ public class ConcurrentMapExecutionContextDaoTests {
stepExecution2.setId(1234L + i);
completionService.submit(new Callable() {
+ @Override
public StepExecution call() throws Exception {
for (int i = 0; i < innerMax; i++) {
String value = "bar" + i;
@@ -99,6 +101,7 @@ public class ConcurrentMapExecutionContextDaoTests {
});
completionService.submit(new Callable() {
+ @Override
public StepExecution call() throws Exception {
for (int i = 0; i < innerMax; i++) {
String value = "spam" + i;
@@ -119,8 +122,9 @@ public class ConcurrentMapExecutionContextDaoTests {
private void saveAndAssert(final StepExecution stepExecution, final String value) {
- new TransactionTemplate(transactionManager).execute(new TransactionCallback() {
- public Object doInTransaction(TransactionStatus status) {
+ new TransactionTemplate(transactionManager).execute(new TransactionCallback() {
+ @Override
+ public Void doInTransaction(TransactionStatus status) {
stepExecution.getExecutionContext().put("foo", value);
dao.saveExecutionContext(stepExecution);
return null;
diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/JdbcJobRepositoryTests.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/JdbcJobRepositoryTests.java
index 8614b2e4f..8085c4ed7 100644
--- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/JdbcJobRepositoryTests.java
+++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/JdbcJobRepositoryTests.java
@@ -92,8 +92,8 @@ public class JdbcJobRepositoryTests {
jdbcTemplate.update("DELETE FROM BATCH_JOB_INSTANCE where JOB_INSTANCE_ID=?", id);
}
for (Long id : jobIds) {
- int count = jdbcTemplate.queryForInt(
- "SELECT COUNT(*) FROM BATCH_JOB_INSTANCE where JOB_INSTANCE_ID=?", id);
+ int count = jdbcTemplate.queryForObject(
+ "SELECT COUNT(*) FROM BATCH_JOB_INSTANCE where JOB_INSTANCE_ID=?", Integer.class, id);
assertEquals(0, count);
}
}
@@ -103,7 +103,7 @@ public class JdbcJobRepositoryTests {
job.setName("foo");
int before = 0;
JobExecution execution = repository.createJobExecution(job.getName(), new JobParameters());
- int after = jdbcTemplate.queryForInt("SELECT COUNT(*) FROM BATCH_JOB_INSTANCE");
+ int after = jdbcTemplate.queryForObject("SELECT COUNT(*) FROM BATCH_JOB_INSTANCE", Integer.class);
assertEquals(before + 1, after);
assertNotNull(execution.getId());
}
@@ -115,7 +115,7 @@ public class JdbcJobRepositoryTests {
JobExecution execution = repository.createJobExecution(job.getName(), new JobParameters());
execution.getExecutionContext().put("foo", "bar");
repository.updateExecutionContext(execution);
- int after = jdbcTemplate.queryForInt("SELECT COUNT(*) FROM BATCH_JOB_EXECUTION_CONTEXT");
+ int after = jdbcTemplate.queryForObject("SELECT COUNT(*) FROM BATCH_JOB_EXECUTION_CONTEXT", Integer.class);
assertEquals(before + 1, after);
assertNotNull(execution.getId());
JobExecution last = repository.getLastJobExecution(job.getName(), new JobParameters());
@@ -145,7 +145,7 @@ public class JdbcJobRepositoryTests {
assertNotNull(execution);
- int after = jdbcTemplate.queryForInt("SELECT COUNT(*) FROM BATCH_JOB_INSTANCE");
+ int after = jdbcTemplate.queryForObject("SELECT COUNT(*) FROM BATCH_JOB_INSTANCE", Integer.class);
assertNotNull(execution.getId());
assertEquals(before + 1, after);
@@ -166,7 +166,7 @@ public class JdbcJobRepositoryTests {
repository.update(execution);
execution.setStatus(BatchStatus.FAILED);
- int before = jdbcTemplate.queryForInt("SELECT COUNT(*) FROM BATCH_JOB_INSTANCE");
+ int before = jdbcTemplate.queryForObject("SELECT COUNT(*) FROM BATCH_JOB_INSTANCE", Integer.class);
assertEquals(1, before);
long t0 = System.currentTimeMillis();
@@ -179,7 +179,7 @@ public class JdbcJobRepositoryTests {
}
long t1 = System.currentTimeMillis();
- int after = jdbcTemplate.queryForInt("SELECT COUNT(*) FROM BATCH_JOB_INSTANCE");
+ int after = jdbcTemplate.queryForObject("SELECT COUNT(*) FROM BATCH_JOB_INSTANCE", Integer.class);
assertNotNull(execution.getId());
assertEquals(before, after);
@@ -197,6 +197,7 @@ public class JdbcJobRepositoryTests {
private JobExecution doConcurrentStart() throws Exception {
new Thread(new Runnable() {
+ @Override
public void run() {
try {
diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/JobSupport.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/JobSupport.java
index 9183ce255..ff9ea9d93 100644
--- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/JobSupport.java
+++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/repository/JobSupport.java
@@ -77,6 +77,7 @@ public class JobSupport implements BeanNameAware, Job {
*
* @see org.springframework.beans.factory.BeanNameAware#setBeanName(java.lang.String)
*/
+ @Override
public void setBeanName(String name) {
if (this.name == null) {
this.name = name;
@@ -97,6 +98,7 @@ public class JobSupport implements BeanNameAware, Job {
/* (non-Javadoc)
* @see org.springframework.batch.core.domain.IJob#getName()
*/
+ @Override
public String getName() {
return name;
}
@@ -139,6 +141,7 @@ public class JobSupport implements BeanNameAware, Job {
/* (non-Javadoc)
* @see org.springframework.batch.core.domain.IJob#isRestartable()
*/
+ @Override
public boolean isRestartable() {
return restartable;
}
@@ -146,10 +149,12 @@ public class JobSupport implements BeanNameAware, Job {
/* (non-Javadoc)
* @see org.springframework.batch.core.Job#getJobParametersIncrementer()
*/
+ @Override
public JobParametersIncrementer getJobParametersIncrementer() {
return null;
}
+ @Override
public JobParametersValidator getJobParametersValidator() {
return jobParametersValidator;
}
@@ -157,10 +162,12 @@ public class JobSupport implements BeanNameAware, Job {
/* (non-Javadoc)
* @see org.springframework.batch.core.domain.Job#run(org.springframework.batch.core.domain.JobExecution)
*/
+ @Override
public void execute(JobExecution execution) throws UnexpectedJobExecutionException {
throw new UnsupportedOperationException("JobSupport does not provide an implementation of run(). Use a smarter subclass.");
}
+ @Override
public String toString() {
return ClassUtils.getShortName(getClass()) + ": [name=" + name + "]";
}
diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanIntegrationTests.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanIntegrationTests.java
index cb2ce008a..a9433f70d 100644
--- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanIntegrationTests.java
+++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanIntegrationTests.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2010-2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.test.step;
import static org.junit.Assert.assertEquals;
@@ -129,7 +144,7 @@ public class FaultTolerantStepFactoryBeanIntegrationTests {
try {
- Step step = (Step) factory.getObject();
+ Step step = factory.getObject();
stepExecution = jobExecution.createStepExecution(factory.getName());
repository.add(stepExecution);
@@ -173,6 +188,7 @@ public class FaultTolerantStepFactoryBeanIntegrationTests {
counter = -1;
}
+ @Override
public synchronized String read() throws Exception, UnexpectedInputException, ParseException {
counter++;
if (counter >= items.length) {
@@ -198,6 +214,7 @@ public class FaultTolerantStepFactoryBeanIntegrationTests {
public List getCommitted() {
return jdbcTemplate.query("SELECT MESSAGE from ERROR_LOG where STEP_NAME='written'",
new ParameterizedRowMapper() {
+ @Override
public String mapRow(ResultSet rs, int rowNum) throws SQLException {
return rs.getString(1);
}
@@ -209,6 +226,7 @@ public class FaultTolerantStepFactoryBeanIntegrationTests {
jdbcTemplate.update("DELETE FROM ERROR_LOG where STEP_NAME='written'");
}
+ @Override
public void write(List extends String> items) throws Exception {
for (String item : items) {
written.add(item);
@@ -242,6 +260,7 @@ public class FaultTolerantStepFactoryBeanIntegrationTests {
public List getCommitted() {
return jdbcTemplate.query("SELECT MESSAGE from ERROR_LOG where STEP_NAME='processed'",
new ParameterizedRowMapper() {
+ @Override
public String mapRow(ResultSet rs, int rowNum) throws SQLException {
return rs.getString(1);
}
@@ -253,6 +272,7 @@ public class FaultTolerantStepFactoryBeanIntegrationTests {
jdbcTemplate.update("DELETE FROM ERROR_LOG where STEP_NAME='processed'");
}
+ @Override
public String process(String item) throws Exception {
processed.add(item);
logger.debug("Processed item: "+item);
diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanRollbackIntegrationTests.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanRollbackIntegrationTests.java
index dd223f94a..5f21266df 100644
--- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanRollbackIntegrationTests.java
+++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanRollbackIntegrationTests.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2010-2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.test.step;
import static org.junit.Assert.assertEquals;
@@ -143,7 +158,7 @@ public class FaultTolerantStepFactoryBeanRollbackIntegrationTests {
writer.setFailures("1", "2", "3", "4", "5");
- Step step = (Step) factory.getObject();
+ Step step = factory.getObject();
stepExecution = jobExecution.createStepExecution(factory.getName());
repository.add(stepExecution);
@@ -194,6 +209,7 @@ public class FaultTolerantStepFactoryBeanRollbackIntegrationTests {
counter = -1;
}
+ @Override
public synchronized String read() throws Exception, UnexpectedInputException, ParseException {
counter++;
if (counter >= items.length) {
@@ -223,6 +239,7 @@ public class FaultTolerantStepFactoryBeanRollbackIntegrationTests {
public List getCommitted() {
return jdbcTemplate.query("SELECT MESSAGE from ERROR_LOG where STEP_NAME='written'",
new ParameterizedRowMapper() {
+ @Override
public String mapRow(ResultSet rs, int rowNum) throws SQLException {
return rs.getString(1);
}
@@ -234,6 +251,7 @@ public class FaultTolerantStepFactoryBeanRollbackIntegrationTests {
jdbcTemplate.update("DELETE FROM ERROR_LOG where STEP_NAME='written'");
}
+ @Override
public void write(List extends String> items) throws Exception {
for (String item : items) {
written.add(item);
@@ -274,6 +292,7 @@ public class FaultTolerantStepFactoryBeanRollbackIntegrationTests {
public List getCommitted() {
return jdbcTemplate.query("SELECT MESSAGE from ERROR_LOG where STEP_NAME='processed'",
new ParameterizedRowMapper() {
+ @Override
public String mapRow(ResultSet rs, int rowNum) throws SQLException {
return rs.getString(1);
}
@@ -285,6 +304,7 @@ public class FaultTolerantStepFactoryBeanRollbackIntegrationTests {
jdbcTemplate.update("DELETE FROM ERROR_LOG where STEP_NAME='processed'");
}
+ @Override
public String process(String item) throws Exception {
processed.add(item);
logger.debug("Processed item: " + item);
diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/MapRepositoryFaultTolerantStepFactoryBeanRollbackTests.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/MapRepositoryFaultTolerantStepFactoryBeanRollbackTests.java
index cfd47fa1a..ff467ff4e 100644
--- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/MapRepositoryFaultTolerantStepFactoryBeanRollbackTests.java
+++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/MapRepositoryFaultTolerantStepFactoryBeanRollbackTests.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2010-2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.test.step;
import static org.junit.Assert.assertEquals;
@@ -104,7 +119,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanRollbackTests {
if (i%100==0) {
logger.info("Starting step: "+i);
- repository = new MapJobRepositoryFactoryBean(transactionManager).getJobRepository();
+ repository = new MapJobRepositoryFactoryBean(transactionManager).getObject();
factory.setJobRepository(repository);
jobExecution = repository.createJobExecution("vanillaJob", new JobParameters());
}
@@ -121,7 +136,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanRollbackTests {
try {
- Step step = (Step) factory.getObject();
+ Step step = factory.getObject();
stepExecution = jobExecution.createStepExecution(factory.getName());
repository.add(stepExecution);
@@ -162,6 +177,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanRollbackTests {
counter = -1;
}
+ @Override
public synchronized String read() throws Exception, UnexpectedInputException, ParseException {
counter++;
if (counter >= items.length) {
@@ -192,6 +208,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanRollbackTests {
written.clear();
}
+ @Override
public void write(List extends String> items) throws Exception {
for (String item : items) {
logger.trace("Writing: "+item);
@@ -221,6 +238,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanRollbackTests {
processed.clear();
}
+ @Override
public String process(String item) throws Exception {
processed.add(item);
logger.debug("Processed item: "+item);
diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/MapRepositoryFaultTolerantStepFactoryBeanTests.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/MapRepositoryFaultTolerantStepFactoryBeanTests.java
index 6044d1f13..f5fdf64c5 100644
--- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/MapRepositoryFaultTolerantStepFactoryBeanTests.java
+++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/MapRepositoryFaultTolerantStepFactoryBeanTests.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2010-2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.test.step;
import static org.junit.Assert.assertEquals;
@@ -98,7 +113,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanTests {
if (i%100==0) {
logger.info("Starting step: "+i);
- repository = new MapJobRepositoryFactoryBean(transactionManager).getJobRepository();
+ repository = new MapJobRepositoryFactoryBean(transactionManager).getObject();
factory.setJobRepository(repository);
jobExecution = repository.createJobExecution("vanillaJob", new JobParameters());
}
@@ -113,7 +128,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanTests {
try {
- Step step = (Step) factory.getObject();
+ Step step = factory.getObject();
stepExecution = jobExecution.createStepExecution(factory.getName());
repository.add(stepExecution);
@@ -157,6 +172,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanTests {
counter = -1;
}
+ @Override
public synchronized String read() throws Exception, UnexpectedInputException, ParseException {
counter++;
if (counter >= items.length) {
@@ -181,6 +197,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanTests {
written.clear();
}
+ @Override
public void write(List extends String> items) throws Exception {
for (String item : items) {
written.add(item);
@@ -209,6 +226,7 @@ public class MapRepositoryFaultTolerantStepFactoryBeanTests {
processed.clear();
}
+ @Override
public String process(String item) throws Exception {
processed.add(item);
logger.debug("Processed item: "+item);
diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/SplitJobMapRepositoryIntegrationTests.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/SplitJobMapRepositoryIntegrationTests.java
index 47a0e1dc4..6c238d294 100644
--- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/SplitJobMapRepositoryIntegrationTests.java
+++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/step/SplitJobMapRepositoryIntegrationTests.java
@@ -45,12 +45,13 @@ public class SplitJobMapRepositoryIntegrationTests {
/** Logger */
private final Log logger = LogFactory.getLog(getClass());
+ @SuppressWarnings("resource")
@Test
public void testMultithreadedSplit() throws Throwable {
JobLauncher jobLauncher = null;
Job job = null;
-
+
ClassPathXmlApplicationContext context = null;
for (int i = 0; i < MAX_COUNT; i++) {
@@ -62,8 +63,8 @@ public class SplitJobMapRepositoryIntegrationTests {
logger.info("Starting job: " + i);
context = new ClassPathXmlApplicationContext(getClass().getSimpleName()
+ "-context.xml", getClass());
- jobLauncher = (JobLauncher) context.getBean("jobLauncher", JobLauncher.class);
- job = (Job) context.getBean("job", Job.class);
+ jobLauncher = context.getBean("jobLauncher", JobLauncher.class);
+ job = context.getBean("job", Job.class);
}
try {
@@ -86,6 +87,7 @@ public class SplitJobMapRepositoryIntegrationTests {
private AtomicInteger count = new AtomicInteger(0);
+ @Override
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
contribution.incrementReadCount();
contribution.incrementWriteCount(1);
diff --git a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/timeout/TimeoutJobIntegrationTests.java b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/timeout/TimeoutJobIntegrationTests.java
index 93c3c34d9..eec8e7fed 100644
--- a/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/timeout/TimeoutJobIntegrationTests.java
+++ b/spring-batch-core-tests/src/test/java/org/springframework/batch/core/test/timeout/TimeoutJobIntegrationTests.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.test.timeout;
import static org.junit.Assert.assertEquals;
@@ -21,6 +36,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
public class TimeoutJobIntegrationTests {
/** Logger */
+ @SuppressWarnings("unused")
private final Log logger = LogFactory.getLog(getClass());
@Autowired
diff --git a/spring-batch-core-tests/src/test/java/test/jdbc/datasource/DataSourceInitializer.java b/spring-batch-core-tests/src/test/java/test/jdbc/datasource/DataSourceInitializer.java
index 5d4aad94c..a2dc03f58 100644
--- a/spring-batch-core-tests/src/test/java/test/jdbc/datasource/DataSourceInitializer.java
+++ b/spring-batch-core-tests/src/test/java/test/jdbc/datasource/DataSourceInitializer.java
@@ -56,6 +56,7 @@ public class DataSourceInitializer implements InitializingBean, DisposableBean {
this.initialize = initialize;
}
+ @Override
public void destroy() throws Exception {
if (!initialized) {
return;
@@ -76,6 +77,7 @@ public class DataSourceInitializer implements InitializingBean, DisposableBean {
}
}
+ @Override
public void afterPropertiesSet() throws Exception {
Assert.notNull(dataSource);
logger.info("Initializing with scripts: "+Arrays.asList(initScripts));
@@ -101,10 +103,11 @@ public class DataSourceInitializer implements InitializingBean, DisposableBean {
if (scriptResource == null || !scriptResource.exists())
return;
TransactionTemplate transactionTemplate = new TransactionTemplate(new DataSourceTransactionManager(dataSource));
- transactionTemplate.execute(new TransactionCallback() {
+ transactionTemplate.execute(new TransactionCallback() {
+ @Override
@SuppressWarnings("unchecked")
- public Object doInTransaction(TransactionStatus status) {
+ public Void doInTransaction(TransactionStatus status) {
JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
String[] scripts;
try {
diff --git a/spring-batch-core-tests/src/test/java/test/jdbc/datasource/DerbyDataSourceFactoryBean.java b/spring-batch-core-tests/src/test/java/test/jdbc/datasource/DerbyDataSourceFactoryBean.java
index 2a16eb389..8bd47a4a5 100644
--- a/spring-batch-core-tests/src/test/java/test/jdbc/datasource/DerbyDataSourceFactoryBean.java
+++ b/spring-batch-core-tests/src/test/java/test/jdbc/datasource/DerbyDataSourceFactoryBean.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2009-2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package test.jdbc.datasource;
import java.io.File;
@@ -7,7 +22,7 @@ import javax.sql.DataSource;
import org.apache.derby.jdbc.EmbeddedDataSource;
import org.springframework.beans.factory.config.AbstractFactoryBean;
-public class DerbyDataSourceFactoryBean extends AbstractFactoryBean {
+public class DerbyDataSourceFactoryBean extends AbstractFactoryBean {
private String dataDirectory = "derby-home";
@@ -15,7 +30,8 @@ public class DerbyDataSourceFactoryBean extends AbstractFactoryBean {
this.dataDirectory = dataDirectory;
}
- protected Object createInstance() throws Exception {
+ @Override
+ protected DataSource createInstance() throws Exception {
File directory = new File(dataDirectory);
System.setProperty("derby.system.home", directory.getCanonicalPath());
System.setProperty("derby.storage.fileSyncTransactionLog", "true");
@@ -28,6 +44,7 @@ public class DerbyDataSourceFactoryBean extends AbstractFactoryBean {
return ds;
}
+ @Override
public Class getObjectType() {
return DataSource.class;
}
diff --git a/spring-batch-core/.springBeans b/spring-batch-core/.springBeans
index 2fe6e96d3..b0422b610 100644
--- a/spring-batch-core/.springBeans
+++ b/spring-batch-core/.springBeans
@@ -1,118 +1,209 @@
-
-
- 1
-
-
-
-
-
-
- src/test/resources/org/springframework/batch/core/configuration/support/test-context.xml
- src/test/resources/org/springframework/batch/core/launch/support/job.xml
- src/test/resources/org/springframework/batch/core/launch/support/test-environment.xml
- src/test/resources/org/springframework/batch/core/launch/support/2jobs.xml
- src/test/resources/org/springframework/batch/core/repository/dao/data-source-context.xml
- src/test/resources/org/springframework/batch/core/launch/support/job2.xml
- src/test/resources/org/springframework/batch/core/repository/dao/sql-dao-test.xml
- src/test/resources/org/springframework/batch/core/launch/support/test-environment-with-registry.xml
- src/test/resources/org/springframework/batch/core/configuration/support/trivial-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/BranchStepJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/common-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/OneStepJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/TwoStepJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/util/AsyncPlaceholderTargetSourceTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/AsyncStepScopeIntegrationTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/DecisionJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobExecutionListenerParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobRepositoryParserTests-context.xml
- src/test/resources/org/springframework/batch/core/partition/launch-context.xml
- src/test/resources/org/springframework/batch/core/scope/util/MultipleContextPlaceholderTargetSourceTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/NextAttributeJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/util/PlaceholderTargetSourceTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/RepositoryJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/util/SimplePlaceholderTargetSourceTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/SplitJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/StepScopeDestructionCallbackIntegrationTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/StepScopeIntegrationTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/StepScopeNestedIntegrationTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/StepScopePlaceholderIntegrationTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/StepScopeStartupIntegrationTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepWithBasicProcessTaskJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepWithFaultTolerantProcessTaskJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepWithSimpleTaskJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StopJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/EndTransitionJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/DefaultFailureJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/DefaultSuccessJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/EndTransitionDefaultStatusJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/FailTransitionDefaultStatusJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/FailTransitionJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/SplitDifferentResultsFailFirstJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/SplitDifferentResultsFailSecondJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepParserBeanNameTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepParserTaskletAttributesTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StopIncompleteJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/AutoRegisteringStepScopeForJobElementTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/AutoRegisteringStepScopeForStepElementTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StopAndRestartJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StopRestartOnCompletedStepJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StopRestartOnFailedStepJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobRegistryJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/launch/JobLauncherIntegrationTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StopCustomStatusJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/util/PlaceholderTargetSourceCustomEditorTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/util/PlaceholderTargetSourceErrorTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/support/child-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementParentAttributeParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/DuplicateTransitionJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/launch/support/error.xml
- src/test/resources/org/springframework/batch/core/step/item/FaultTolerantExceptionClassesTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/FlowJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/InlineItemHandlerParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobParserNextOutOfScopeTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobParserParentAttributeTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobParserUnreachableStepInFlowTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobParserUnreachableStepTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobRepositoryParserReferenceTests-context.xml
- src/test/resources/org/springframework/batch/core/launch/support/launcher-with-environment.xml
- src/test/resources/org/springframework/batch/core/launch/support/launcher-with-locator.xml
- src/test/resources/org/springframework/batch/core/resource/ListPreparedStatementSetterTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/NextAttributeMultipleFinalJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/support/parent-context.xml
- src/test/resources/org/springframework/batch/core/repository/support/SimpleJobRepositoryProxyTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/SplitInterruptedJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepListenerParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepParserBadRetryListenerTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepParserBadStepListenerTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepParserCommitIntervalCompletionPolicyTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepParserCommitIntervalTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepParserCompletionPolicyTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepParserNoCommitIntervalOrCompletionPolicyTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StepParserParentAttributeTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/StepScopePerformanceTests-context.xml
- src/test/resources/org/springframework/batch/core/scope/StepScopeProxyTargetClassIntegrationTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/StopAndRestartFailedJobParserTests-context.xml
- src/test/resources/org/springframework/batch/core/launch/support/test-environment-with-registry-and-auto-register.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementIllegalAttributeParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementIllegalTransactionalAttributeParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementSimpleAttributeParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementTransactionalAttributeParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/FlowStepParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobParserWrongSchemaInRootTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/PartitionStepParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementSkipPolicyParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/xml/JobStepParserTests-context.xml
- src/test/resources/org/springframework/batch/core/configuration/support/AutomaticJobRegistrarContextTests-context.xml
-
-
-
-
- true
- false
-
- src/test/resources/org/springframework/batch/core/launch/support/job.xml
- src/test/resources/org/springframework/batch/core/launch/support/test-environment.xml
-
-
-
-
+
+
+ 1
+
+
+
+
+
+
+ src/test/resources/org/springframework/batch/core/configuration/support/test-context.xml
+ src/test/resources/org/springframework/batch/core/launch/support/job.xml
+ src/test/resources/org/springframework/batch/core/launch/support/test-environment.xml
+ src/test/resources/org/springframework/batch/core/launch/support/2jobs.xml
+ src/test/resources/org/springframework/batch/core/repository/dao/data-source-context.xml
+ src/test/resources/org/springframework/batch/core/launch/support/job2.xml
+ src/test/resources/org/springframework/batch/core/repository/dao/sql-dao-test.xml
+ src/test/resources/org/springframework/batch/core/launch/support/test-environment-with-registry.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/trivial-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/BranchStepJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/common-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/OneStepJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/TwoStepJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/AsyncStepScopeIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/DecisionJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobExecutionListenerParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobRepositoryParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/partition/launch-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/NextAttributeJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/RepositoryJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/SplitJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/StepScopeDestructionCallbackIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/StepScopeIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/StepScopeNestedIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/StepScopePlaceholderIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/StepScopeStartupIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepWithBasicProcessTaskJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepWithFaultTolerantProcessTaskJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepWithSimpleTaskJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StopJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/EndTransitionJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/DefaultFailureJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/DefaultSuccessJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/EndTransitionDefaultStatusJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/FailTransitionDefaultStatusJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/FailTransitionJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/SplitDifferentResultsFailFirstJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/SplitDifferentResultsFailSecondJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepParserBeanNameTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepParserTaskletAttributesTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StopIncompleteJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/AutoRegisteringStepScopeForJobElementTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/AutoRegisteringStepScopeForStepElementTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StopAndRestartJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StopRestartOnCompletedStepJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StopRestartOnFailedStepJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobRegistryJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/launch/JobLauncherIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StopCustomStatusJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/child-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementParentAttributeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/launch/support/error.xml
+ src/test/resources/org/springframework/batch/core/step/item/FaultTolerantExceptionClassesTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/FlowJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/InlineItemHandlerParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobParserNextOutOfScopeTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobParserParentAttributeTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobRepositoryParserReferenceTests-context.xml
+ src/test/resources/org/springframework/batch/core/launch/support/launcher-with-environment.xml
+ src/test/resources/org/springframework/batch/core/launch/support/launcher-with-locator.xml
+ src/test/resources/org/springframework/batch/core/resource/ListPreparedStatementSetterTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/parent-context.xml
+ src/test/resources/org/springframework/batch/core/repository/support/SimpleJobRepositoryProxyTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/SplitInterruptedJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepListenerParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepParserCommitIntervalTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepParserCompletionPolicyTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepParserParentAttributeTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/StepScopePerformanceTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/StepScopeProxyTargetClassIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StopAndRestartFailedJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/launch/support/test-environment-with-registry-and-auto-register.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementIllegalAttributeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementIllegalTransactionalAttributeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementSimpleAttributeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementTransactionalAttributeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/FlowStepParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/PartitionStepParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementSkipPolicyParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobStepParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/AutomaticJobRegistrarContextTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/AsyncJobScopeIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/AutoRegisteringJobScopeForJobElementTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/AutoRegisteringJobScopeForStepElementTests-context.xml
+ src/main/resources/baseContext.xml
+ src/main/resources/beanRefContext.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementIllegalSkipAndRetryAttributeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementLateBindingParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementRetryPolicyParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ChunkElementSkipAndRetryAttributeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/ChunkListenerParsingTests-context.xml
+ src/test/resources/META-INF/batch-jobs/contextClosingTests.xml
+ src/test/resources/META-INF/batch-jobs/DecisionStepTests-decisionAfterFlow-context.xml
+ src/test/resources/META-INF/batch-jobs/DecisionStepTests-decisionAfterSplit-context.xml
+ src/test/resources/META-INF/batch-jobs/DecisionStepTests-decisionAsFirstStep-context.xml
+ src/test/resources/META-INF/batch-jobs/DecisionStepTests-decisionCustomExitStatus-context.xml
+ src/test/resources/META-INF/batch-jobs/DecisionStepTests-decisionInvalidExitStatus-context.xml
+ src/test/resources/META-INF/batch-jobs/DecisionStepTests-decisionThrowsException-context.xml
+ src/test/resources/META-INF/batch-jobs/DecisionStepTests-decisionValidExitStatus-context.xml
+ src/test/resources/META-INF/batch-jobs/DecisionStepTests-restart-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/default-split-task-executor-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/DefaultUnknownJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/ExceptionHandlingParsingTests-context.xml
+ src/test/resources/META-INF/batch-jobs/FlowParserTests-context.xml
+ src/test/resources/META-INF/batch-jobs/FlowParserTestsStepGetsFailedTransitionWhenNextAttributePresent.xml
+ src/test/resources/META-INF/batch-jobs/FlowParserTestsStepNoOverrideWhenNextAndFailedTransitionElementExists.xml
+ src/test/resources/META-INF/batch-jobs/FlowParserTestsWildcardAndNextAttrJob.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/InlineItemHandlerWithStepScopeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/ItemListenerParsingTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/ItemSkipParsingTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/job-context-with-separate-steps.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/job-context-with-steps.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobExecutionListenerMethodAttributeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/JobListenerParsingTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobParserValidatorTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/JobPropertySubstitutionTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/JobRegistryIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/JobRepositoryDefaultParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/JobScopeDestructionCallbackIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/JobScopeIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/JobScopeNestedIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/JobScopePlaceholderIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/JobScopeProxyTargetClassIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/JobScopeStartupIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/JsrDecisionParsingTests-context.xml
+ src/test/resources/META-INF/batch-jobs/JsrSplitParsingTests-context.xml
+ src/test/resources/META-INF/batch-jobs/jsrSpringInstanceTests.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/NamespacePrefixedJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/NextAttributeUnknownJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/override_batch.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ParentRetryableLateBindingStepFactoryBeanParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ParentRetryableStepFactoryBeanParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ParentSkippableLateBindingStepFactoryBeanParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ParentSkippableStepFactoryBeanParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/ParentStepFactoryBeanParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/PartitionStepWithFlowParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/PartitionStepWithLateBindingParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/PartitionStepWithNonDefaultTransactionManagerParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/placeholder-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/profiles.xml
+ src/test/resources/org/springframework/batch/core/step/RestartInPriorStepTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/RetryListenerTestBase-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/RetryReadListenerExhausted.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/RetryReadListenerListenerException.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/RetryReadListenerRetryOnce.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/SimpleItemBasedJobParsingTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/SimpleJobParsingTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/SplitNestedJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepListenerInStepParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepListenerMethodAttributeParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/StepListenerParsingTests-context.xml
+ src/test/resources/org/springframework/batch/core/scope/StepScopeClassIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/annotation/StepScopeConfigurationTestsInheritence-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/annotation/StepScopeConfigurationTestsInterface-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/annotation/StepScopeConfigurationTestsProxyTargetClass-context.xml
+ src/test/resources/org/springframework/batch/core/scope/StepScopeProxyTargetClassOverrideIntegrationTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/StepWithPojoListenerJobParserTests-context.xml
+ src/test/resources/org/springframework/batch/core/repository/dao/TablePrefixTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/TaskletParserAdapterTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/TaskletParserBeanPropertiesTests-context.xml
+ src/test/resources/org/springframework/batch/core/configuration/xml/TaskletStepAllowStartIfCompleteTest-context.xml
+ src/test/resources/org/springframework/batch/core/launch/support/test-environment-with-loader.xml
+ src/test/resources/org/springframework/batch/core/configuration/support/trivial-context-autoregister.xml
+ src/test/resources/org/springframework/batch/core/jsr/configuration/xml/user-specified-split-task-executor-context.xml
+ java:org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration
+ java:org.springframework.batch.core.configuration.annotation.JobBuilderConfigurationTests$AnotherConfiguration
+ java:org.springframework.batch.core.jsr.configuration.xml.BatchParserTests$BaseConfiguration
+ java:org.springframework.batch.core.configuration.annotation.JobBuilderConfigurationTests$BeansConfigurer
+ java:org.springframework.batch.core.explore.support.SimpleJobExplorerIntegrationTests$Config
+ java:org.springframework.batch.core.configuration.annotation.DataSourceConfiguration
+ java:org.springframework.batch.core.configuration.annotation.JobLoaderConfigurationTests$LoaderFactoryConfiguration
+ java:org.springframework.batch.core.configuration.annotation.JobLoaderConfigurationTests$LoaderRegistrarConfiguration
+ java:org.springframework.batch.core.configuration.annotation.ModularBatchConfiguration
+ java:org.springframework.batch.core.step.builder.RegisterMultiListenerTests$MultiListenerFaultTolerantTestConfiguration
+ java:org.springframework.batch.core.step.builder.RegisterMultiListenerTests$MultiListenerTestConfiguration
+ java:org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration
+ java:org.springframework.batch.core.configuration.annotation.StepScopeConfigurationTests$StepScopeConfigurationForcingInterfaceProxy
+ java:org.springframework.batch.core.configuration.annotation.StepScopeConfigurationTests$StepScopeConfigurationInjectingProxy
+ java:org.springframework.batch.core.configuration.annotation.StepScopeConfigurationTests$StepScopeConfigurationRequiringProxyTargetClass
+ java:org.springframework.batch.core.configuration.annotation.StepScopeConfigurationTests$StepScopeConfigurationWithDefaults
+ java:org.springframework.batch.core.configuration.annotation.JobLoaderConfigurationTests$TestConfiguration
+ java:org.springframework.batch.core.configuration.annotation.JobBuilderConfigurationTests$TestConfiguration
+ java:org.springframework.batch.core.configuration.annotation.JobBuilderConfigurationTests$TestConfigurer
+ java:org.springframework.batch.core.configuration.annotation.JobLoaderConfigurationTests$VanillaConfiguration
+ java:org.springframework.batch.core.configuration.annotation.StepScopeConfiguration
+
+
+
+
+ true
+ false
+
+ src/test/resources/org/springframework/batch/core/launch/support/job.xml
+ src/test/resources/org/springframework/batch/core/launch/support/test-environment.xml
+
+
+
+
+
+
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java b/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java
index f38d891e6..45be8fc33 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java
@@ -347,7 +347,7 @@ public class JobExecution extends Entity {
}
/**
- * Deserialise and ensure transient fields are re-instantiated when read
+ * Deserialize and ensure transient fields are re-instantiated when read
* back
*/
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecutionException.java b/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecutionException.java
index 5e87b6304..4e6a46e65 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecutionException.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecutionException.java
@@ -24,6 +24,7 @@ package org.springframework.batch.core;
* @author Dave Syer
*
*/
+@SuppressWarnings("serial")
public class JobExecutionException extends Exception {
/**
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/JobInterruptedException.java b/spring-batch-core/src/main/java/org/springframework/batch/core/JobInterruptedException.java
index 8d2ba0d51..a91f7398e 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/JobInterruptedException.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/JobInterruptedException.java
@@ -28,6 +28,7 @@ package org.springframework.batch.core;
* @author Dave Syer
*
*/
+@SuppressWarnings("serial")
public class JobInterruptedException extends JobExecutionException {
private BatchStatus status = BatchStatus.STOPPED;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersInvalidException.java b/spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersInvalidException.java
index cbb0eab7e..e7a6d1f71 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersInvalidException.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersInvalidException.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2009-2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core;
/**
@@ -7,6 +22,7 @@ package org.springframework.batch.core;
* @author Dave Syer
*
*/
+@SuppressWarnings("serial")
public class JobParametersInvalidException extends JobExecutionException {
public JobParametersInvalidException(String msg) {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersValidator.java b/spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersValidator.java
index 8e21e2ada..730916f60 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersValidator.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersValidator.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2010 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/StartLimitExceededException.java b/spring-batch-core/src/main/java/org/springframework/batch/core/StartLimitExceededException.java
index 7776b2b71..4d61a50bd 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/StartLimitExceededException.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/StartLimitExceededException.java
@@ -19,6 +19,7 @@ package org.springframework.batch.core;
/**
* Indicates the step's start limit has been exceeded.
*/
+@SuppressWarnings("serial")
public class StartLimitExceededException extends RuntimeException {
public StartLimitExceededException(String message) {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java b/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java
index 7b410efd0..f53e8036d 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java
@@ -499,7 +499,7 @@ public class StepExecution extends Entity {
}
/**
- * Deserialise and ensure transient fields are re-instantiated when read
+ * Deserialize and ensure transient fields are re-instantiated when read
* back
*/
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/DuplicateJobException.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/DuplicateJobException.java
index 777ead743..886ed4e61 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/DuplicateJobException.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/DuplicateJobException.java
@@ -25,6 +25,7 @@ import org.springframework.batch.core.JobExecutionException;
* @author Dave Syer
*
*/
+@SuppressWarnings("serial")
public class DuplicateJobException extends JobExecutionException {
/**
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/StepRegistry.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/StepRegistry.java
index c3e857c38..67b5dbe39 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/StepRegistry.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/StepRegistry.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2012 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.configuration;
import org.springframework.batch.core.Step;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepBuilderFactory.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepBuilderFactory.java
index fecca1672..7e8993201 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepBuilderFactory.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepBuilderFactory.java
@@ -45,7 +45,7 @@ public class StepBuilderFactory {
* @return a step builder
*/
public StepBuilder get(String name) {
- StepBuilder builder = (StepBuilder) new StepBuilder(name).repository(jobRepository).transactionManager(
+ StepBuilder builder = new StepBuilder(name).repository(jobRepository).transactionManager(
transactionManager);
return builder;
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepScope.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepScope.java
index cee43408f..b95c4c129 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepScope.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepScope.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.configuration.annotation;
import java.lang.annotation.Documented;
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ApplicationContextJobFactory.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ApplicationContextJobFactory.java
index 125e3daa9..9c194b4b0 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ApplicationContextJobFactory.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ApplicationContextJobFactory.java
@@ -38,6 +38,7 @@ public class ApplicationContextJobFactory implements JobFactory {
* containing a job with the job name provided
*/
public ApplicationContextJobFactory(String jobName, ApplicationContextFactory applicationContextFactory) {
+ @SuppressWarnings("resource")
ConfigurableApplicationContext context = applicationContextFactory.createApplicationContext();
this.job = context.getBean(jobName, Job.class);
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/AutomaticJobRegistrar.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/AutomaticJobRegistrar.java
index 293108b74..716a4e999 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/AutomaticJobRegistrar.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/AutomaticJobRegistrar.java
@@ -43,7 +43,7 @@ import org.springframework.util.Assert;
*
* @since 2.1
*/
-public class AutomaticJobRegistrar implements Ordered, Lifecycle, ApplicationListener, ApplicationContextAware,
+public class AutomaticJobRegistrar implements Ordered, Lifecycle, ApplicationListener, ApplicationContextAware,
InitializingBean {
private Collection applicationContextFactories = new ArrayList();
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ClassPathXmlJobRegistry.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ClassPathXmlJobRegistry.java
index 728c7a8f4..278481676 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ClassPathXmlJobRegistry.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ClassPathXmlJobRegistry.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2008-2010 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.configuration.support;
/**
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ClasspathXmlApplicationContextsFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ClasspathXmlApplicationContextsFactoryBean.java
index ba8b9d263..9e4d7fb5e 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ClasspathXmlApplicationContextsFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/ClasspathXmlApplicationContextsFactoryBean.java
@@ -37,7 +37,7 @@ import org.springframework.core.io.Resource;
* @author Dave Syer
*
*/
-public class ClasspathXmlApplicationContextsFactoryBean implements FactoryBean, ApplicationContextAware {
+public class ClasspathXmlApplicationContextsFactoryBean implements FactoryBean, ApplicationContextAware {
private List resources = new ArrayList();
@@ -109,7 +109,7 @@ public class ClasspathXmlApplicationContextsFactoryBean implements FactoryBean,
* @see org.springframework.beans.factory.FactoryBean#getObject()
*/
@Override
- public Object getObject() throws Exception {
+ public ApplicationContextFactory[] getObject() throws Exception {
if (resources == null) {
return new ApplicationContextFactory[0];
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/DefaultJobLoader.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/DefaultJobLoader.java
index cf3bc97db..260618e28 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/DefaultJobLoader.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/DefaultJobLoader.java
@@ -147,6 +147,7 @@ public class DefaultJobLoader implements JobLoader, InitializingBean {
return doLoad(factory, false);
}
+ @SuppressWarnings("resource")
private Collection doLoad(ApplicationContextFactory factory, boolean unregister) throws DuplicateJobException {
Collection jobNamesBefore = jobRegistry.getJobNames();
@@ -226,7 +227,6 @@ public class DefaultJobLoader implements JobLoader, InitializingBean {
// Because some steps are referenced by name, we need to look in the context to see if there
// are more Step instances defined. Right now they are registered as being available in the
// context of the job but we have no idea if they are linked to that Job or not.
- @SuppressWarnings("unchecked")
final Map allSteps = jobApplicationContext.getBeansOfType(Step.class);
for (Map.Entry entry : allSteps.entrySet()) {
if (!stepNames.contains(entry.getKey())) {
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/JobRegistryBeanPostProcessor.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/JobRegistryBeanPostProcessor.java
index 643e9c439..555d8d47e 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/JobRegistryBeanPostProcessor.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/JobRegistryBeanPostProcessor.java
@@ -106,7 +106,7 @@ DisposableBean {
}
/**
- * De-register all the {@link Job} instances that were regsistered by this
+ * Unregister all the {@link Job} instances that were registered by this
* post processor.
* @see org.springframework.beans.factory.DisposableBean#destroy()
*/
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/AbstractFlowParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/AbstractFlowParser.java
index 8950cfa27..abaafb4da 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/AbstractFlowParser.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/AbstractFlowParser.java
@@ -18,7 +18,6 @@ package org.springframework.batch.core.configuration.xml;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
-import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
@@ -311,7 +310,7 @@ public abstract class AbstractFlowParser extends AbstractSingleBeanDefinitionPar
* @param transitionElement The element to parse
* @param stateDef The bean definition for the current state
* @param parserContext the parser context for the bean factory
- * @param a collection of
+ * @return a collection of
* {@link org.springframework.batch.core.job.flow.support.StateTransition}
* references
*/
@@ -342,7 +341,7 @@ public abstract class AbstractFlowParser extends AbstractSingleBeanDefinitionPar
* default to batchStatus.
* @param stateDef The bean definition for the current state
* @param parserContext the parser context for the bean factory
- * @param a collection of
+ * @return a collection of
* {@link org.springframework.batch.core.job.flow.support.StateTransition}
* references
*/
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/AbstractListenerParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/AbstractListenerParser.java
index 870195a49..779447f02 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/AbstractListenerParser.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/AbstractListenerParser.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2009-2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.configuration.xml;
import java.util.ArrayList;
@@ -39,11 +54,10 @@ public abstract class AbstractListenerParser {
return builder.getBeanDefinition();
}
- @SuppressWarnings("unchecked")
public void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
builder.addPropertyValue("delegate", parseListenerElement(element, parserContext, builder.getRawBeanDefinition()));
- ManagedMap metaDataMap = new ManagedMap();
+ ManagedMap metaDataMap = new ManagedMap();
for (String metaDataPropertyName : getMethodNameAttributes()) {
String listenerMethod = element.getAttribute(metaDataPropertyName);
if (StringUtils.hasText(listenerMethod)) {
@@ -53,7 +67,6 @@ public abstract class AbstractListenerParser {
builder.addPropertyValue("metaDataMap", metaDataMap);
}
- @SuppressWarnings("unchecked")
public static BeanMetadataElement parseListenerElement(Element element, ParserContext parserContext, BeanDefinition enclosing) {
String listenerRef = element.getAttribute(REF_ATTR);
List beanElements = DomUtils.getChildElementsByTagName(element, BEAN_ELE);
@@ -119,7 +132,7 @@ public abstract class AbstractListenerParser {
return methodNameAttributes;
}
- protected abstract Class extends AbstractListenerFactoryBean> getBeanClass();
+ protected abstract Class extends AbstractListenerFactoryBean>> getBeanClass();
protected abstract ListenerMetaData[] getMetaDataValues();
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/ChunkElementParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/ChunkElementParser.java
index fa05bba2a..693b52c05 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/ChunkElementParser.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/ChunkElementParser.java
@@ -19,10 +19,12 @@ import java.util.List;
import org.springframework.batch.core.listener.StepListenerMetaData;
import org.springframework.batch.repeat.policy.SimpleCompletionPolicy;
+import org.springframework.beans.BeanMetadataElement;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanDefinitionHolder;
import org.springframework.beans.factory.config.RuntimeBeanReference;
+import org.springframework.beans.factory.config.TypedStringValue;
import org.springframework.beans.factory.parsing.CompositeComponentDefinition;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
@@ -118,10 +120,11 @@ public class ChunkElementParser {
}
String skipLimit = element.getAttribute("skip-limit");
- ManagedMap skippableExceptions = new ExceptionElementParser().parse(element, parserContext, "skippable-exception-classes");
+ ManagedMap skippableExceptions =
+ new ExceptionElementParser().parse(element, parserContext, "skippable-exception-classes");
if (StringUtils.hasText(skipLimit)) {
if (skippableExceptions == null) {
- skippableExceptions = new ManagedMap();
+ skippableExceptions = new ManagedMap();
skippableExceptions.setMergeEnabled(true);
}
propertyValues.addPropertyValue("skipLimit", skipLimit);
@@ -142,10 +145,11 @@ public class ChunkElementParser {
underspecified);
String retryLimit = element.getAttribute("retry-limit");
- ManagedMap retryableExceptions = new ExceptionElementParser().parse(element, parserContext, "retryable-exception-classes");
+ ManagedMap retryableExceptions =
+ new ExceptionElementParser().parse(element, parserContext, "retryable-exception-classes");
if (StringUtils.hasText(retryLimit)) {
if (retryableExceptions == null) {
- retryableExceptions = new ManagedMap();
+ retryableExceptions = new ManagedMap();
retryableExceptions.setMergeEnabled(true);
}
propertyValues.addPropertyValue("retryLimit", retryLimit);
@@ -194,7 +198,6 @@ public class ChunkElementParser {
private void handleItemHandler(AbstractBeanDefinition enclosing, String handlerName, String propertyName, String adapterClassName, boolean required,
Element element, ParserContext parserContext, MutablePropertyValues propertyValues, boolean underspecified) {
String refName = element.getAttribute(handlerName);
- @SuppressWarnings("unchecked")
List children = DomUtils.getChildElementsByTagName(element, handlerName);
if (children.size() == 1) {
if (StringUtils.hasText(refName)) {
@@ -223,7 +226,6 @@ public class ChunkElementParser {
* Handle the <reader/>, <processor/>, or <writer/> that
* is defined within the item handler.
*/
- @SuppressWarnings("unchecked")
private void handleItemHandlerElement(AbstractBeanDefinition enclosing, String propertyName, String adapterClassName,
MutablePropertyValues propertyValues, Element element, ParserContext parserContext) {
List beanElements = DomUtils.getChildElementsByTagName(element, BEAN_ELE);
@@ -281,7 +283,7 @@ public class ChunkElementParser {
CompositeComponentDefinition compositeDef = new CompositeComponentDefinition(listenersElement.getTagName(),
parserContext.extractSource(element));
parserContext.pushContainingComponent(compositeDef);
- ManagedList retryListenerBeans = new ManagedList();
+ ManagedList retryListenerBeans = new ManagedList();
retryListenerBeans.setMergeEnabled(listenersElement.hasAttribute(MERGE_ATTR)
&& Boolean.valueOf(listenersElement.getAttribute(MERGE_ATTR)));
handleRetryListenerElements(parserContext, listenersElement, retryListenerBeans, enclosing);
@@ -290,8 +292,7 @@ public class ChunkElementParser {
}
}
- @SuppressWarnings("unchecked")
- private void handleRetryListenerElements(ParserContext parserContext, Element element, ManagedList beans,
+ private void handleRetryListenerElements(ParserContext parserContext, Element element, ManagedList beans,
BeanDefinition enclosing) {
List listenerElements = DomUtils.getChildElementsByTagName(element, "listener");
if (listenerElements != null) {
@@ -301,11 +302,10 @@ public class ChunkElementParser {
}
}
- @SuppressWarnings("unchecked")
private void handleStreamsElement(Element element, MutablePropertyValues propertyValues, ParserContext parserContext) {
Element streamsElement = DomUtils.getChildElementByTagName(element, "streams");
if (streamsElement != null) {
- ManagedList streamBeans = new ManagedList();
+ ManagedList streamBeans = new ManagedList();
streamBeans.setMergeEnabled(streamsElement.hasAttribute(MERGE_ATTR)
&& Boolean.valueOf(streamsElement.getAttribute(MERGE_ATTR)));
List streamElements = DomUtils.getChildElementsByTagName(streamsElement, "stream");
@@ -324,35 +324,5 @@ public class ChunkElementParser {
propertyValues.addPropertyValue("streams", streamBeans);
}
}
- //
- // @SuppressWarnings("unchecked")
- // private ManagedMap handleExceptionElement(Element element, ParserContext parserContext, String exceptionListName) {
- // List children = DomUtils.getChildElementsByTagName(element, exceptionListName);
- // if (children.size() == 1) {
- // ManagedMap map = new ManagedMap();
- // Element exceptionClassesElement = children.get(0);
- // map.setMergeEnabled(exceptionClassesElement.hasAttribute(MERGE_ATTR)
- // && Boolean.valueOf(exceptionClassesElement.getAttribute(MERGE_ATTR)));
- // addExceptionClasses("include", true, exceptionClassesElement, map, parserContext);
- // addExceptionClasses("exclude", false, exceptionClassesElement, map, parserContext);
- // map.put(ForceRollbackForWriteSkipException.class, true);
- // return map;
- // }
- // else if (children.size() > 1) {
- // parserContext.getReaderContext().error(
- // "The <" + exceptionListName + "/> element may not appear more than once in a single <"
- // + element.getNodeName() + "/>.", element);
- // }
- // return null;
- // }
- //
- // @SuppressWarnings("unchecked")
- // private void addExceptionClasses(String elementName, boolean include, Element exceptionClassesElement,
- // ManagedMap map, ParserContext parserContext) {
- // for (Element child : (List) DomUtils.getChildElementsByTagName(exceptionClassesElement, elementName)) {
- // String className = child.getAttribute("class");
- // map.put(new TypedStringValue(className, Class.class), include);
- // }
- // }
- //
+
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/ExceptionElementParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/ExceptionElementParser.java
index a5bf3501b..180626207 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/ExceptionElementParser.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/ExceptionElementParser.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2013-2014 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.springframework.batch.core.configuration.xml;
import java.util.List;
@@ -11,15 +26,14 @@ import org.w3c.dom.Element;
public class ExceptionElementParser {
- @SuppressWarnings("unchecked")
- public ManagedMap parse(Element element, ParserContext parserContext, String exceptionListName) {
+ public ManagedMap parse(Element element, ParserContext parserContext, String exceptionListName) {
List children = DomUtils.getChildElementsByTagName(element, exceptionListName);
if (children.size() == 1) {
- ManagedMap map = new ManagedMap();
+ ManagedMap map = new ManagedMap();
Element exceptionClassesElement = children.get(0);
addExceptionClasses("include", true, exceptionClassesElement, map, parserContext);
addExceptionClasses("exclude", false, exceptionClassesElement, map, parserContext);
- map.put(ForceRollbackForWriteSkipException.class, true);
+ map.put(new TypedStringValue(ForceRollbackForWriteSkipException.class.getName(), Class.class), true);
return map;
}
else if (children.size() > 1) {
@@ -30,9 +44,8 @@ public class ExceptionElementParser {
return null;
}
- @SuppressWarnings("unchecked")
private void addExceptionClasses(String elementName, boolean include, Element exceptionClassesElement,
- ManagedMap map, ParserContext parserContext) {
+ ManagedMap map, ParserContext parserContext) {
for (Element child : DomUtils.getChildElementsByTagName(exceptionClassesElement, elementName)) {
String className = child.getAttribute("class");
map.put(new TypedStringValue(className, Class.class), include);
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/FlowElementParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/FlowElementParser.java
index c13e75d2a..de7aeef18 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/FlowElementParser.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/FlowElementParser.java
@@ -26,7 +26,7 @@ import org.springframework.beans.factory.xml.ParserContext;
import org.w3c.dom.Element;
/**
- * Internal parser for the <flow/> elements inside a job..
+ * Internal parser for the <flow/> elements inside a job.
*
* @see JobParser
*
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobExecutionListenerParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobExecutionListenerParser.java
index 7065b75f6..be5311b64 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobExecutionListenerParser.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobExecutionListenerParser.java
@@ -32,7 +32,7 @@ import org.springframework.batch.core.listener.ListenerMetaData;
public class JobExecutionListenerParser extends AbstractListenerParser {
@Override
- protected Class extends AbstractListenerFactoryBean> getBeanClass() {
+ protected Class extends AbstractListenerFactoryBean>> getBeanClass() {
return JobListenerFactoryBean.class;
}
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParser.java
index 4a7796330..d93e09411 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParser.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParser.java
@@ -32,7 +32,7 @@ import org.springframework.util.xml.DomUtils;
import org.w3c.dom.Element;
/**
- * Parser for the lt;job/gt; element in the Batch namespace. Sets up and returns
+ * Parser for the <job/> element in the Batch namespace. Sets up and returns
* a bean definition for a {@link org.springframework.batch.core.Job}.
*
* @author Dave Syer
@@ -63,7 +63,6 @@ public class JobParser extends AbstractSingleBeanDefinitionParser {
* @see AbstractSingleBeanDefinitionParser#doParse(Element, ParserContext,
* BeanDefinitionBuilder)
*/
- @SuppressWarnings("unchecked")
@Override
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
@@ -134,7 +133,7 @@ public class JobParser extends AbstractSingleBeanDefinitionParser {
CompositeComponentDefinition compositeDef = new CompositeComponentDefinition(listenersElement.getTagName(),
parserContext.extractSource(element));
parserContext.pushContainingComponent(compositeDef);
- ManagedList listeners = new ManagedList();
+ ManagedList listeners = new ManagedList();
listeners.setMergeEnabled(listenersElement.hasAttribute(MERGE_ATTR)
&& Boolean.valueOf(listenersElement.getAttribute(MERGE_ATTR)));
List listenerElements = DomUtils.getChildElementsByTagName(listenersElement, "listener");
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParserJobFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParserJobFactoryBean.java
index 45abbadc6..886c104ad 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParserJobFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobParserJobFactoryBean.java
@@ -35,7 +35,7 @@ import org.springframework.util.StringUtils;
* @author Dave Syer
* @since 2.0.1
*/
-public class JobParserJobFactoryBean implements SmartFactoryBean {
+public class JobParserJobFactoryBean implements SmartFactoryBean {
private String name;
@@ -56,7 +56,7 @@ public class JobParserJobFactoryBean implements SmartFactoryBean {
}
@Override
- public final Object getObject() throws Exception {
+ public final FlowJob getObject() throws Exception {
Assert.isTrue(StringUtils.hasText(name), "The job must have an id.");
FlowJob flowJob = new FlowJob(name);
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobRepositoryParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobRepositoryParser.java
index bf61d561e..15f2a8c48 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobRepositoryParser.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/JobRepositoryParser.java
@@ -27,7 +27,7 @@ import org.springframework.util.StringUtils;
import org.w3c.dom.Element;
/**
- * Parser for the lt;job-repository/gt; element in the Batch namespace. Sets up
+ * Parser for the <job-repository/> element in the Batch namespace. Sets up
* and returns a JobRepositoryFactoryBean.
*
* @author Thomas Risberg
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/SimpleFlowFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/SimpleFlowFactoryBean.java
index 947596d8f..f64b8ed6f 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/SimpleFlowFactoryBean.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/SimpleFlowFactoryBean.java
@@ -42,10 +42,8 @@ import org.springframework.util.Assert;
*
* @author Dave Syer
* @author Michael Minella
- *
*/
-@SuppressWarnings("rawtypes")
-public class SimpleFlowFactoryBean implements FactoryBean, InitializingBean {
+public class SimpleFlowFactoryBean implements FactoryBean, InitializingBean {
private String name;
@@ -111,7 +109,7 @@ public class SimpleFlowFactoryBean implements FactoryBean, InitializingBean {
* @see org.springframework.beans.factory.FactoryBean#getObject()
*/
@Override
- public Object getObject() throws Exception {
+ public SimpleFlow getObject() throws Exception {
SimpleFlow flow = flowType.getConstructor(String.class).newInstance(name);
flow.setStateTransitionComparator(stateTransitionComparator);
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/SplitParser.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/SplitParser.java
index cd3c12477..789f799e4 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/SplitParser.java
+++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/SplitParser.java
@@ -44,9 +44,6 @@ import org.w3c.dom.Element;
*/
public class SplitParser {
- /**
- *
- */
private static final String PARENT_ATTR = "parent";
private final String jobFactoryRef;
@@ -90,8 +87,7 @@ public class SplitParser {
parserContext.getReaderContext().error("A must contain at least two 'flow' elements.", element);
}
- @SuppressWarnings({"rawtypes", "unchecked"})
- Collection