Class OperationMethod
java.lang.Object
org.springframework.boot.actuate.endpoint.invoke.reflect.OperationMethod
- Direct Known Subclasses:
DiscoveredOperationMethod
Information describing an operation method on an endpoint method.
- Since:
- 2.0.0
- Author:
- Phillip Webb
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOperationMethod
(Method method, OperationType operationType) Deprecated, for removal: This API element is subject to removal in a future version.OperationMethod
(Method method, OperationType operationType, Predicate<Parameter> optionalParameters) Create a newOperationMethod
instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn the source Java method.Return the operation type.Return the operation parameters.toString()
-
Constructor Details
-
OperationMethod
@Deprecated(since="4.0.0", forRemoval=true) public OperationMethod(Method method, OperationType operationType) Deprecated, for removal: This API element is subject to removal in a future version.since 4.0.0 for removal in 4.2.0 in favor ofOperationMethod(Method, OperationType, Predicate)
pCreate a newOperationMethod
instance.- Parameters:
method
- the source methodoperationType
- the operation type
-
OperationMethod
public OperationMethod(Method method, OperationType operationType, Predicate<Parameter> optionalParameters) Create a newOperationMethod
instance.- Parameters:
method
- the source methodoperationType
- the operation typeoptionalParameters
- predicate to test if a parameter is optional- Since:
- 4.0.0
-
-
Method Details
-
getMethod
-
getOperationType
-
getParameters
Return the operation parameters.- Returns:
- the operation parameters
-
toString
-
OperationMethod(Method, OperationType, Predicate)
p