Merge pull request #8922 from dupirefr/team/JAVA-958-standardize_packages_in_spring_batch_module

[JAVA-958] Standardize packages in spring batch module
This commit is contained in:
Josh Cummings
2020-03-24 22:46:02 -06:00
committed by GitHub
55 changed files with 114 additions and 110 deletions
@@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung;
import org.junit.Test;
Binary file not shown.
@@ -1,4 +1,4 @@
package org.baeldung.batch;
package com.baeldung.batch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,12 +1,12 @@
package org.baeldung.batch;
package com.baeldung.batch;
import org.baeldung.batch.model.Transaction;
import org.baeldung.batch.service.CustomItemProcessor;
import org.baeldung.batch.service.CustomSkipPolicy;
import org.baeldung.batch.service.MissingUsernameException;
import org.baeldung.batch.service.NegativeAmountException;
import org.baeldung.batch.service.RecordFieldSetMapper;
import org.baeldung.batch.service.SkippingItemProcessor;
import com.baeldung.batch.model.Transaction;
import com.baeldung.batch.service.CustomItemProcessor;
import com.baeldung.batch.service.CustomSkipPolicy;
import com.baeldung.batch.service.MissingUsernameException;
import com.baeldung.batch.service.NegativeAmountException;
import com.baeldung.batch.service.RecordFieldSetMapper;
import com.baeldung.batch.service.SkippingItemProcessor;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
@@ -1,12 +1,12 @@
package org.baeldung.batch;
package com.baeldung.batch;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.conn.ConnectTimeoutException;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.baeldung.batch.model.Transaction;
import org.baeldung.batch.service.RecordFieldSetMapper;
import org.baeldung.batch.service.RetryItemProcessor;
import com.baeldung.batch.model.Transaction;
import com.baeldung.batch.service.RecordFieldSetMapper;
import com.baeldung.batch.service.RetryItemProcessor;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
@@ -1,4 +1,4 @@
package org.baeldung.batch;
package com.baeldung.batch;
import java.net.MalformedURLException;
@@ -1,6 +1,6 @@
package org.baeldung.batch.model;
package com.baeldung.batch.model;
import org.baeldung.batch.service.adapter.LocalDateTimeAdapter;
import com.baeldung.batch.service.adapter.LocalDateTimeAdapter;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.baeldung.batch.partitioner;
package com.baeldung.batch.partitioner;
import java.util.HashMap;
import java.util.Map;
@@ -1,7 +1,7 @@
package org.baeldung.batch.partitioner;
package com.baeldung.batch.partitioner;
import org.baeldung.batch.model.Transaction;
import org.baeldung.batch.service.RecordFieldSetMapper;
import com.baeldung.batch.model.Transaction;
import com.baeldung.batch.service.RecordFieldSetMapper;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
@@ -1,4 +1,4 @@
package org.baeldung.batch.partitioner;
package com.baeldung.batch.partitioner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,6 +1,6 @@
package org.baeldung.batch.service;
package com.baeldung.batch.service;
import org.baeldung.batch.model.Transaction;
import com.baeldung.batch.model.Transaction;
import org.springframework.batch.item.ItemProcessor;
public class CustomItemProcessor implements ItemProcessor<Transaction, Transaction> {
@@ -1,4 +1,4 @@
package org.baeldung.batch.service;
package com.baeldung.batch.service;
import org.springframework.batch.core.step.skip.SkipLimitExceededException;
import org.springframework.batch.core.step.skip.SkipPolicy;
@@ -1,4 +1,4 @@
package org.baeldung.batch.service;
package com.baeldung.batch.service;
public class MissingUsernameException extends RuntimeException {
}
@@ -1,4 +1,4 @@
package org.baeldung.batch.service;
package com.baeldung.batch.service;
public class NegativeAmountException extends RuntimeException {
@@ -1,6 +1,6 @@
package org.baeldung.batch.service;
package com.baeldung.batch.service;
import org.baeldung.batch.model.Transaction;
import com.baeldung.batch.model.Transaction;
import org.springframework.batch.item.file.mapping.FieldSetMapper;
import org.springframework.batch.item.file.transform.FieldSet;
import org.springframework.validation.BindException;
@@ -1,10 +1,10 @@
package org.baeldung.batch.service;
package com.baeldung.batch.service;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.util.EntityUtils;
import org.baeldung.batch.model.Transaction;
import com.baeldung.batch.model.Transaction;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
import org.slf4j.Logger;
@@ -1,6 +1,6 @@
package org.baeldung.batch.service;
package com.baeldung.batch.service;
import org.baeldung.batch.model.Transaction;
import com.baeldung.batch.model.Transaction;
import org.springframework.batch.item.ItemProcessor;
public class SkippingItemProcessor implements ItemProcessor<Transaction, Transaction> {
@@ -1,4 +1,4 @@
package org.baeldung.batch.service.adapter;
package com.baeldung.batch.service.adapter;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import java.time.LocalDateTime;
@@ -1,4 +1,4 @@
package org.baeldung.batchscheduler;
package com.baeldung.batchscheduler;
import java.util.Date;
import java.util.IdentityHashMap;
@@ -7,7 +7,7 @@ import java.util.Map;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import org.baeldung.batchscheduler.model.Book;
import com.baeldung.batchscheduler.model.Book;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.Job;
@@ -1,4 +1,4 @@
package org.baeldung.batchscheduler.model;
package com.baeldung.batchscheduler.model;
public class Book {
private int id;
@@ -1,4 +1,4 @@
package org.baeldung.batchtesting;
package com.baeldung.batchtesting;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobParametersBuilder;
@@ -1,13 +1,13 @@
package org.baeldung.batchtesting;
package com.baeldung.batchtesting;
import java.io.IOException;
import org.baeldung.batchtesting.model.Book;
import org.baeldung.batchtesting.model.BookDetails;
import org.baeldung.batchtesting.model.BookRecord;
import org.baeldung.batchtesting.service.BookDetailsItemProcessor;
import org.baeldung.batchtesting.service.BookItemProcessor;
import org.baeldung.batchtesting.service.BookRecordFieldSetMapper;
import com.baeldung.batchtesting.model.Book;
import com.baeldung.batchtesting.model.BookDetails;
import com.baeldung.batchtesting.model.BookRecord;
import com.baeldung.batchtesting.service.BookDetailsItemProcessor;
import com.baeldung.batchtesting.service.BookItemProcessor;
import com.baeldung.batchtesting.service.BookRecordFieldSetMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.Job;
@@ -1,4 +1,4 @@
package org.baeldung.batchtesting.model;
package com.baeldung.batchtesting.model;
public class Book {
@@ -1,4 +1,4 @@
package org.baeldung.batchtesting.model;
package com.baeldung.batchtesting.model;
public class BookDetails {

Some files were not shown because too many files have changed in this diff Show More