Interface ParametersSource
public interface ParametersSource
Interface providing access to the method, containing class and domain type as source object for parameter
descriptors.
- Since:
- 3.2.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
static ParametersSource
Create a new parameter source for the givenMethod
.static ParametersSource
of
(RepositoryMetadata metadata, Method method) Create a new parameter source for the givenMethod
in the context ofRepositoryMetadata
.
-
Method Details
-
of
Create a new parameter source for the givenMethod
.- Parameters:
method
- the method to use.- Returns:
- a new parameter source for the given
Method
.
-
of
Create a new parameter source for the givenMethod
in the context ofRepositoryMetadata
.- Parameters:
method
- the method to use.- Returns:
- a new parameter source for the given
Method
.
-
getContainingClass
Class<?> getContainingClass()- Returns:
- the class that contains the
getMethod()
.
-
getMethod
Method getMethod()- Returns:
- the method for which the parameter source is defined.
-
getDomainTypeInformation
TypeInformation<?> getDomainTypeInformation()- Returns:
- the domain type associated with the parameter source.
-