Fix typos
This commit is contained in:
@@ -37,7 +37,7 @@ import org.springframework.core.type.AnnotationMetadata;
|
||||
import org.springframework.util.StopWatch;
|
||||
|
||||
/**
|
||||
* Base registrar that provides common infrastrucutre beans for enabling and using Spring
|
||||
* Base registrar that provides common infrastructure beans for enabling and using Spring
|
||||
* Batch in a declarative way through {@link EnableBatchProcessing}.
|
||||
*
|
||||
* @author Mahmoud Ben Hassine
|
||||
@@ -66,7 +66,7 @@ class BatchRegistrar implements ImportBeanDefinitionRegistrar {
|
||||
registerJobOperator(registry, batchAnnotation);
|
||||
registerAutomaticJobRegistrar(registry, batchAnnotation);
|
||||
watch.stop();
|
||||
LOGGER.info(LogMessage.format("Finished Spring Batch infrastrucutre beans configuration in %s ms.",
|
||||
LOGGER.info(LogMessage.format("Finished Spring Batch infrastructure beans configuration in %s ms.",
|
||||
watch.getLastTaskTimeMillis()));
|
||||
}
|
||||
|
||||
|
||||
@@ -205,8 +205,8 @@ public @interface EnableBatchProcessing {
|
||||
String tablePrefix() default AbstractJdbcBatchMetadataDao.DEFAULT_TABLE_PREFIX;
|
||||
|
||||
/**
|
||||
* The maximum lenght of exit messages in the database.
|
||||
* @return the maximum lenght of exit messages in the database
|
||||
* The maximum length of exit messages in the database.
|
||||
* @return the maximum length of exit messages in the database
|
||||
*/
|
||||
int maxVarCharLength() default AbstractJdbcBatchMetadataDao.DEFAULT_EXIT_MESSAGE_LENGTH;
|
||||
|
||||
@@ -247,7 +247,7 @@ public @interface EnableBatchProcessing {
|
||||
* Set the conversion service to use in the job repository and job explorer. This
|
||||
* service is used to convert job parameters from String literal to typed values and
|
||||
* vice versa.
|
||||
* @return the bean name of the conversion service to use. Defauls to
|
||||
* @return the bean name of the conversion service to use. Defaults to
|
||||
* {@literal conversionService}
|
||||
*/
|
||||
String conversionServiceRef() default "conversionService";
|
||||
|
||||
@@ -38,7 +38,7 @@ import org.springframework.util.StringUtils;
|
||||
* where:
|
||||
*
|
||||
* <ul>
|
||||
* <li>value: string literal repesenting the value</li>
|
||||
* <li>value: string literal representing the value</li>
|
||||
* <li>type (optional): fully qualified name of the type of the value. Defaults to
|
||||
* String.</li>
|
||||
* <li>identifying (optional): boolean to flag the job parameter as identifying or not.
|
||||
|
||||
@@ -32,7 +32,7 @@ public class CompositeChunkListener implements ChunkListener {
|
||||
private OrderedComposite<ChunkListener> listeners = new OrderedComposite<>();
|
||||
|
||||
/**
|
||||
* Default constrcutor
|
||||
* Default constructor
|
||||
*/
|
||||
public CompositeChunkListener() {
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@ public abstract class AbstractTaskletStepBuilder<B extends AbstractTaskletStepBu
|
||||
* @param throttleLimit maximum number of concurrent tasklet executions allowed
|
||||
* @return this for fluent chaining
|
||||
* @deprecated since 5.0, scheduled for removal in 6.0. Use a pooled
|
||||
* {@link TaskExecutor} implemenation with a limited capacity of its task queue
|
||||
* {@link TaskExecutor} implementation with a limited capacity of its task queue
|
||||
* instead.
|
||||
*/
|
||||
@Deprecated(since = "5.0", forRemoval = true)
|
||||
|
||||
@@ -76,20 +76,20 @@ class BatchRegistrarTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("When cusotm beans are provided, then default ones should not be used")
|
||||
@DisplayName("When custom beans are provided, then default ones should not be used")
|
||||
void testConfigurationWithUserDefinedBeans() {
|
||||
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
|
||||
JobConfigurationWithUserDefinedInfrastrucutreBeans.class);
|
||||
JobConfigurationWithUserDefinedInfrastructureBeans.class);
|
||||
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastrucutreBeans.jobRepository,
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastructureBeans.jobRepository,
|
||||
context.getBean(JobRepository.class));
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastrucutreBeans.jobExplorer,
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastructureBeans.jobExplorer,
|
||||
context.getBean(JobExplorer.class));
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastrucutreBeans.jobLauncher,
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastructureBeans.jobLauncher,
|
||||
context.getBean(JobLauncher.class));
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastrucutreBeans.jobRegistry,
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastructureBeans.jobRegistry,
|
||||
context.getBean(JobRegistry.class));
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastrucutreBeans.jobOperator,
|
||||
Assertions.assertEquals(JobConfigurationWithUserDefinedInfrastructureBeans.jobOperator,
|
||||
context.getBean(JobOperator.class));
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ class BatchRegistrarTests {
|
||||
|
||||
@Test
|
||||
@DisplayName("When custom bean names are provided, then corresponding beans should be used to configure infrastructure beans")
|
||||
void testConfigurationWithCustonBeanNames() {
|
||||
void testConfigurationWithCustomBeanNames() {
|
||||
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
|
||||
JobConfigurationWithCustomBeanNames.class);
|
||||
|
||||
@@ -201,7 +201,7 @@ class BatchRegistrarTests {
|
||||
|
||||
@Configuration
|
||||
@EnableBatchProcessing
|
||||
public static class JobConfigurationWithUserDefinedInfrastrucutreBeans {
|
||||
public static class JobConfigurationWithUserDefinedInfrastructureBeans {
|
||||
|
||||
public static JobRepository jobRepository = Mockito.mock(JobRepository.class);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public class CompositeItemProcessor<I, O> implements ItemProcessor<I, O>, Initia
|
||||
private List<? extends ItemProcessor<?, ?>> delegates;
|
||||
|
||||
/**
|
||||
* Default constrcutor
|
||||
* Default constructor
|
||||
*/
|
||||
public CompositeItemProcessor() {
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ public class CompositeItemStream implements ItemStream {
|
||||
}
|
||||
|
||||
/**
|
||||
* Default constrcutor
|
||||
* Default constructor
|
||||
*/
|
||||
public CompositeItemStream() {
|
||||
super();
|
||||
|
||||
@@ -45,7 +45,7 @@ public class CompositeItemWriter<T> implements ItemStreamWriter<T>, Initializing
|
||||
private boolean ignoreItemStream = false;
|
||||
|
||||
/**
|
||||
* Default constrcutor
|
||||
* Default constructor
|
||||
*/
|
||||
public CompositeItemWriter() {
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public class CompositeRepeatListener implements RepeatListener {
|
||||
private List<RepeatListener> listeners = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Default constrcutor
|
||||
* Default constructor
|
||||
*/
|
||||
public CompositeRepeatListener() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user