Class RepositoryItemWriterBuilder.RepositoryMethodReference<T>
java.lang.Object
org.springframework.batch.infrastructure.item.data.builder.RepositoryItemWriterBuilder.RepositoryMethodReference<T>
- Type Parameters:
T- The type of repository that will be used by the writer. The class must not be final.
- Enclosing class:
RepositoryItemWriterBuilder<T>
Establishes a proxy that will capture the Repository and the associated methodName
that will be used by the writer.
- Since:
- 4.0
- Author:
- Glenn Renfro, Mahmoud Ben Hassine
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryMethodReference(org.springframework.data.repository.CrudRepository<?, ?> repository) -
Method Summary
-
Constructor Details
-
RepositoryMethodReference
public RepositoryMethodReference(org.springframework.data.repository.CrudRepository<?, ?> repository)
-
-
Method Details
-
methodIs
The proxy returned prevents actual method execution and is only used to gather information about the method.- Returns:
- T a proxy of the object passed in the constructor
-