Fix typos
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
* Copyright 2012-2018 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.
|
||||
@@ -28,6 +28,7 @@ import org.springframework.util.Assert;
|
||||
* </p>
|
||||
*
|
||||
* @author Chris Schaefer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*/
|
||||
public class AmqpItemReader<T> implements ItemReader<T> {
|
||||
private final AmqpTemplate amqpTemplate;
|
||||
@@ -39,7 +40,7 @@ public class AmqpItemReader<T> implements ItemReader<T> {
|
||||
* @param amqpTemplate the template to be used. Must not be null.
|
||||
*/
|
||||
public AmqpItemReader(final AmqpTemplate amqpTemplate) {
|
||||
Assert.notNull(amqpTemplate, "AmpqTemplate must not be null");
|
||||
Assert.notNull(amqpTemplate, "AmqpTemplate must not be null");
|
||||
|
||||
this.amqpTemplate = amqpTemplate;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012 the original author or authors.
|
||||
* Copyright 2012-2018 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.
|
||||
@@ -32,13 +32,14 @@ import java.util.List;
|
||||
* </p>
|
||||
*
|
||||
* @author Chris Schaefer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*/
|
||||
public class AmqpItemWriter<T> implements ItemWriter<T> {
|
||||
private final AmqpTemplate amqpTemplate;
|
||||
private final Log log = LogFactory.getLog(getClass());
|
||||
|
||||
public AmqpItemWriter(final AmqpTemplate amqpTemplate) {
|
||||
Assert.notNull(amqpTemplate, "AmpqTemplate must not be null");
|
||||
Assert.notNull(amqpTemplate, "AmqpTemplate must not be null");
|
||||
|
||||
this.amqpTemplate = amqpTemplate;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012 the original author or authors.
|
||||
* Copyright 2012-2018 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.
|
||||
@@ -40,6 +40,7 @@ import org.springframework.util.CollectionUtils;
|
||||
*
|
||||
* @author Michael Minella
|
||||
* @author Glenn Renfro
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public class Neo4jItemWriter<T> implements ItemWriter<T>, InitializingBean {
|
||||
@@ -94,7 +95,7 @@ public class Neo4jItemWriter<T> implements ItemWriter<T>, InitializingBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs the actual write using the template. This can be overriden by
|
||||
* Performs the actual write using the template. This can be overridden by
|
||||
* a subclass if necessary.
|
||||
*
|
||||
* @param items the list of items to be persisted.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012 the original author or authors.
|
||||
* Copyright 2012-2018 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.
|
||||
@@ -52,6 +52,7 @@ import org.springframework.util.MethodInvoker;
|
||||
* </p>
|
||||
*
|
||||
* @author Michael Minella
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @since 2.2
|
||||
*/
|
||||
public class RepositoryItemWriter<T> implements ItemWriter<T>, InitializingBean {
|
||||
@@ -95,7 +96,7 @@ public class RepositoryItemWriter<T> implements ItemWriter<T>, InitializingBean
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs the actual write to the repository. This can be overriden by
|
||||
* Performs the actual write to the repository. This can be overridden by
|
||||
* a subclass if necessary.
|
||||
*
|
||||
* @param items the list of items to be persisted.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017 the original author or authors.
|
||||
* Copyright 2017-2018 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.
|
||||
@@ -30,6 +30,7 @@ import org.springframework.util.StringUtils;
|
||||
* A builder implementation for the {@link MongoItemReader}
|
||||
*
|
||||
* @author Glenn Renfro
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @since 4.0
|
||||
* @see MongoItemReader
|
||||
*/
|
||||
@@ -242,7 +243,7 @@ public class MongoItemReaderBuilder<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide a Spring Data Mongo {@link Query}. This will take precidence over a JSON
|
||||
* Provide a Spring Data Mongo {@link Query}. This will take precedence over a JSON
|
||||
* configured query.
|
||||
*
|
||||
* @param query Query to execute
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017 the original author or authors.
|
||||
* Copyright 2017-2018 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.
|
||||
@@ -36,6 +36,7 @@ import org.springframework.util.StringUtils;
|
||||
* A builder implementation for the {@link RepositoryItemReader}.
|
||||
*
|
||||
* @author Glenn Renfro
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @since 4.0
|
||||
* @see RepositoryItemReader
|
||||
*/
|
||||
@@ -249,13 +250,13 @@ public class RepositoryItemReaderBuilder<T> {
|
||||
* not be final.
|
||||
*/
|
||||
public static class RepositoryMethodReference<T> {
|
||||
private RepositoryMethodIterceptor repositoryInvocationHandler;
|
||||
private RepositoryMethodInterceptor repositoryInvocationHandler;
|
||||
|
||||
private PagingAndSortingRepository<?, ?> repository;
|
||||
|
||||
public RepositoryMethodReference(PagingAndSortingRepository<?, ?> repository) {
|
||||
this.repository = repository;
|
||||
this.repositoryInvocationHandler = new RepositoryMethodIterceptor();
|
||||
this.repositoryInvocationHandler = new RepositoryMethodInterceptor();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -283,7 +284,7 @@ public class RepositoryItemReaderBuilder<T> {
|
||||
}
|
||||
}
|
||||
|
||||
private static class RepositoryMethodIterceptor implements MethodInterceptor {
|
||||
private static class RepositoryMethodInterceptor implements MethodInterceptor {
|
||||
private String methodName;
|
||||
|
||||
private List<Object> arguments;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017 the original author or authors.
|
||||
* Copyright 2017-2018 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.
|
||||
@@ -30,6 +30,7 @@ import org.springframework.util.StringUtils;
|
||||
* A fluent builder API for the configuration of a {@link StoredProcedureItemReader}.
|
||||
*
|
||||
* @author Michael Minella
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @since 4.0.0
|
||||
* @see StoredProcedureItemReader
|
||||
*/
|
||||
@@ -318,7 +319,7 @@ public class StoredProcedureItemReaderBuilder<T> {
|
||||
/**
|
||||
* Validates configuration and builds a new reader instance
|
||||
*
|
||||
* @return a fully constructerd {@link StoredProcedureItemReader}
|
||||
* @return a fully constructed {@link StoredProcedureItemReader}
|
||||
*/
|
||||
public StoredProcedureItemReader<T> build() {
|
||||
if(this.saveState) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2007 the original author or authors.
|
||||
* Copyright 2006-2018 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.
|
||||
@@ -20,9 +20,10 @@ import java.io.Writer;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Callback interface for writing to a header to a file.
|
||||
* Callback interface for writing a header to a file.
|
||||
*
|
||||
* @author Robert Kasanicky
|
||||
* @author Mahmoud Ben Hassine
|
||||
*/
|
||||
public interface FlatFileHeaderCallback {
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ public class FlatFileItemReader<T> extends AbstractItemCountingItemStreamItemRea
|
||||
|
||||
/**
|
||||
* Factory for the {@link BufferedReader} that will be used to extract lines from the file. The default is fine for
|
||||
* plain text files, but this is a useful strategy for binary files where the standard BufferedReaader from java.io
|
||||
* plain text files, but this is a useful strategy for binary files where the standard BufferedReader from java.io
|
||||
* is limiting.
|
||||
*
|
||||
* @param bufferedReaderFactory the bufferedReaderFactory to set
|
||||
|
||||
@@ -657,7 +657,7 @@ public class FlatFileItemReaderBuilder<T> {
|
||||
tokenizer.afterPropertiesSet();
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new IllegalStateException("Unable to intialize DelimitedLineTokenizer", e);
|
||||
throw new IllegalStateException("Unable to initialize DelimitedLineTokenizer", e);
|
||||
}
|
||||
|
||||
return tokenizer;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2007 the original author or authors.
|
||||
* Copyright 2006-2018 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.
|
||||
@@ -19,12 +19,13 @@ package org.springframework.batch.item.file.transform;
|
||||
* This class will convert an object to an array of its parts.
|
||||
*
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public interface FieldExtractor<T> {
|
||||
|
||||
/**
|
||||
* @param item the object that contains the the information to be extracted.
|
||||
* @param item the object that contains the information to be extracted.
|
||||
* @return an array containing item's parts
|
||||
*/
|
||||
Object[] extract(T item);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2010 the original author or authors.
|
||||
* Copyright 2006-2018 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.
|
||||
@@ -35,10 +35,11 @@ import java.util.concurrent.Future;
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* Result result = future.get(1000L, TimeUnit.MILLSECONDS);
|
||||
* Result result = future.get(1000L, TimeUnit.MILLISECONDS);
|
||||
* </pre>
|
||||
*
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public interface Poller<T> {
|
||||
|
||||
Reference in New Issue
Block a user