Skip to content

Commit

Permalink
Add missing interfaces for new adapters
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <[email protected]>
  • Loading branch information
acktsap committed Mar 10, 2024
1 parent 15527e6 commit acbbe7c
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* 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;

/**
* A simple 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
@@ -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;

/**
* A simple 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
@@ -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;

/**
* A simple 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
@@ -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;

/**
* A simple 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> {
}

0 comments on commit acbbe7c

Please sign in to comment.