Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing interfaces for new adapters #87

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
import org.springframework.batch.item.ItemStreamReader;
import org.springframework.batch.item.ItemStreamWriter;

import reactor.core.publisher.Flux;

/**
* A simple adapter for stream reader, processor, writer. It can represent
* A {@link Flux<I>} based adapter for stream reader, processor, writer. It can represent
* {@link ItemStreamReader}, {@link ItemProcessor}, {@link ItemStreamWriter} in a single class.
*
* @since 1.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Spring Batch Plus
*
* Copyright 2022-present NAVER Corp.
*
* 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 com.navercorp.spring.batch.plus.item.adapter;

import org.springframework.batch.item.ItemStreamReader;
import org.springframework.batch.item.ItemStreamWriter;

import reactor.core.publisher.Flux;

/**
* A {@link Flux<T>} based adapter for stream reader, writer. It can represent
* {@link ItemStreamReader}, {@link ItemStreamWriter} in a single class.
*
* @since 1.1.0
*/
public interface ItemStreamFluxReaderWriter<T> extends ItemStreamFluxReaderDelegate<T>, ItemStreamWriterDelegate<T> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.springframework.batch.item.ItemStreamWriter;

/**
* A simple adapter for stream reader, processor, writer. It can represent
* An {@link Iterable<I>} based adapter for stream reader, processor, writer. It can represent
* {@link ItemStreamReader}, {@link ItemProcessor}, {@link ItemStreamWriter} in a single class.
*
* @since 1.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Spring Batch Plus
*
* Copyright 2022-present NAVER Corp.
*
* 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 com.navercorp.spring.batch.plus.item.adapter;

import org.springframework.batch.item.ItemStreamReader;
import org.springframework.batch.item.ItemStreamWriter;

/**
* An {@link Iterable<T>} based adapter for stream reader, writer. It can represent
* {@link ItemStreamReader}, {@link ItemStreamWriter} in a single class.
*
* @since 1.1.0
*/
public interface ItemStreamIterableReaderWriter<T>
extends ItemStreamIterableReaderDelegate<T>, ItemStreamWriterDelegate<T> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@

package com.navercorp.spring.batch.plus.item.adapter;

import java.util.Iterator;

import org.springframework.batch.item.ItemProcessor;
import org.springframework.batch.item.ItemStreamReader;
import org.springframework.batch.item.ItemStreamWriter;

/**
* A simple adapter for stream reader, processor, writer. It can represent
* An {@link Iterator<I>} based adapter for stream reader, processor, writer. It can represent
* {@link ItemStreamReader}, {@link ItemProcessor}, {@link ItemStreamWriter} in a single class.
*
* @since 1.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Spring Batch Plus
*
* Copyright 2022-present NAVER Corp.
*
* 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 com.navercorp.spring.batch.plus.item.adapter;

import java.util.Iterator;

import org.springframework.batch.item.ItemStreamReader;
import org.springframework.batch.item.ItemStreamWriter;

/**
* An {@link Iterator<T>} based adapter for stream reader, writer. It can represent
* {@link ItemStreamReader}, {@link ItemStreamWriter} in a single class.
*
* @since 1.1.0
*/
public interface ItemStreamIteratorReaderWriter<T>
extends ItemStreamIteratorReaderDelegate<T>, ItemStreamWriterDelegate<T> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.springframework.batch.item.ItemStreamWriter;

/**
* A simple adapter for stream reader, processor, writer. It can represent
* An item ({@link I}) based adapter for stream reader, processor, writer. It can represent
* {@link ItemStreamReader}, {@link ItemProcessor}, {@link ItemStreamWriter} in a single class.
*
* @since 1.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Spring Batch Plus
*
* Copyright 2022-present NAVER Corp.
*
* 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 com.navercorp.spring.batch.plus.item.adapter;

import org.springframework.batch.item.ItemStreamReader;
import org.springframework.batch.item.ItemStreamWriter;

/**
* An item ({@link T}) based adapter for stream reader, writer. It can represent
* {@link ItemStreamReader}, {@link ItemStreamWriter} in a single class.
*
* @since 1.1.0
*/
public interface ItemStreamSimpleReaderWriter<T>
extends ItemStreamSimpleReaderDelegate<T>, ItemStreamWriterDelegate<T> {
}
Loading