Module spring.data.commons
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 RepositoryMethodContextCreates a newRepositoryMethodContextfor the givenMethod.Returns the metadata for the repository.Returns the current method that is being invoked.
-
Method Details
-
forMethod
Creates a newRepositoryMethodContextfor the givenMethod.- Parameters:
method- must not be null.- Returns:
- will never be null.
-
getMetadata
Description copied from interface:RepositoryMethodContextReturns the metadata for the repository.- Specified by:
getMetadatain interfaceRepositoryMethodContext- Returns:
- the repository metadata, will never be null.
-
getMethod
Description copied from interface:RepositoryMethodContextReturns 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:
getMethodin interfaceRepositoryMethodContext- Returns:
- the current method, will never be null.
-