Class DefaultRepositoryMethodContext
java.lang.Object
org.springframework.data.repository.core.support.DefaultRepositoryMethodContext
- All Implemented Interfaces:
RepositoryMethodContext
Class containing value objects providing information about the current repository method invocation.
- Since:
- 3.4
- Author:
- Christoph Strobl, Mark Paluch, Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryMethodContext
Creates a newRepositoryMethodContext
for the givenMethod
.Returns the metadata for the repository.Returns the current method that is being invoked.
-
Method Details
-
forMethod
Creates a newRepositoryMethodContext
for the givenMethod
.- Parameters:
method
- must not be null.- Returns:
- will never be null.
-
getMetadata
Description copied from interface:RepositoryMethodContext
Returns the metadata for the repository.- Specified by:
getMetadata
in interfaceRepositoryMethodContext
- Returns:
- the repository metadata, will never be null.
-
getMethod
Description copied from interface:RepositoryMethodContext
Returns the current method that is being invoked.The method object represents the method as being invoked on the repository interface. It doesn't match the backing repository implementation in case the method invocation is delegated to an implementation method.
- Specified by:
getMethod
in interfaceRepositoryMethodContext
- Returns:
- the current method, will never be null.
-