Class ProducibleOperationArgumentResolver
java.lang.Object
org.springframework.boot.actuate.endpoint.ProducibleOperationArgumentResolver
- All Implemented Interfaces:
OperationArgumentResolver
public class ProducibleOperationArgumentResolver
extends Object
implements OperationArgumentResolver
- Since:
- 2.5.0
- Author:
- Andy Wilkinson, Phillip Webb
-
Constructor Summary
ConstructorDescriptionProducibleOperationArgumentResolver
(Supplier<List<String>> accepts) Create a newProducibleOperationArgumentResolver
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canResolve
(Class<?> type) Return whether an argument of the giventype
can be resolved.<T> T
Resolves an argument of the giventype
.
-
Constructor Details
-
ProducibleOperationArgumentResolver
Create a newProducibleOperationArgumentResolver
instance.- Parameters:
accepts
- supplier that returns accepted mime types
-
-
Method Details
-
canResolve
Description copied from interface:OperationArgumentResolver
Return whether an argument of the giventype
can be resolved.- Specified by:
canResolve
in interfaceOperationArgumentResolver
- Parameters:
type
- argument type- Returns:
true
if an argument of the required type can be resolved, otherwisefalse
-
resolve
Description copied from interface:OperationArgumentResolver
Resolves an argument of the giventype
.- Specified by:
resolve
in interfaceOperationArgumentResolver
- Type Parameters:
T
- required type of the argument- Parameters:
type
- argument type- Returns:
- an argument of the required type, or
null
-