diff --git a/spring-batch-core/.springBeans b/spring-batch-core/.springBeans index 727751631..db95f4d70 100644 --- a/spring-batch-core/.springBeans +++ b/spring-batch-core/.springBeans @@ -1,10 +1,11 @@ 1 - + + src/test/resources/org/springframework/batch/core/configuration/support/test-context.xml src/test/resources/org/springframework/batch/core/launch/support/job.xml diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/StepExecutionSyncronizerFactory.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/StepExecutionSynchronizerFactory.java similarity index 91% rename from spring-batch-core/src/main/java/org/springframework/batch/core/step/StepExecutionSyncronizerFactory.java rename to spring-batch-core/src/main/java/org/springframework/batch/core/step/StepExecutionSynchronizerFactory.java index 872e3a460..826bde833 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/StepExecutionSyncronizerFactory.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/StepExecutionSynchronizerFactory.java @@ -25,22 +25,22 @@ import org.springframework.util.ClassUtils; * * @author Ben Hale */ -public class StepExecutionSyncronizerFactory { +public class StepExecutionSynchronizerFactory { /** Whether the backport-concurrent library is present on the classpath */ private static final boolean backportConcurrentAvailable = ClassUtils.isPresent( - "edu.emory.mathcs.backport.java.util.concurrent.Semaphore", StepExecutionSyncronizerFactory.class + "edu.emory.mathcs.backport.java.util.concurrent.Semaphore", StepExecutionSynchronizerFactory.class .getClassLoader()); private final StepExecutionSynchronizer synchronizer; - public StepExecutionSyncronizerFactory() { + public StepExecutionSynchronizerFactory() { if (JdkVersion.isAtLeastJava15()) { synchronizer = new JdkConcurrentStepExecutionSynchronizer(); } else if (backportConcurrentAvailable) { synchronizer = new BackportConcurrentStepExecutionSynchronizer(); } else { - throw new IllegalStateException("Cannot create StepExecutionSycnronizer - " + throw new IllegalStateException("Cannot create StepExecutionSynchronizer - " + "neither JDK 1.5 nor backport-concurrent available on the classpath"); } } diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ItemOrientedStep.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ItemOrientedStep.java index e6ee9f808..a48f231bc 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ItemOrientedStep.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ItemOrientedStep.java @@ -33,7 +33,7 @@ import org.springframework.batch.core.repository.JobRepository; import org.springframework.batch.core.repository.NoSuchJobException; import org.springframework.batch.core.step.AbstractStep; import org.springframework.batch.core.step.StepExecutionSynchronizer; -import org.springframework.batch.core.step.StepExecutionSyncronizerFactory; +import org.springframework.batch.core.step.StepExecutionSynchronizerFactory; import org.springframework.batch.core.step.StepInterruptionPolicy; import org.springframework.batch.core.step.ThreadStepInterruptionPolicy; import org.springframework.batch.item.ItemReader; @@ -102,7 +102,7 @@ public class ItemOrientedStep extends AbstractStep { */ public ItemOrientedStep(String name) { super(name); - synchronizer = new StepExecutionSyncronizerFactory().getStepExecutionSynchronizer(); + synchronizer = new StepExecutionSynchronizerFactory().getStepExecutionSynchronizer(); } /**