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
ConstructorsConstructorDescriptionProducibleOperationArgumentResolver(Supplier<List<String>> accepts) Create a newProducibleOperationArgumentResolverinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanResolve(Class<?> type) Return whether an argument of the giventypecan be resolved.<T> TResolves an argument of the giventype.
-
Constructor Details
-
ProducibleOperationArgumentResolver
Create a newProducibleOperationArgumentResolverinstance.- Parameters:
accepts- supplier that returns accepted mime types
-
-
Method Details
-
canResolve
Description copied from interface:OperationArgumentResolverReturn whether an argument of the giventypecan be resolved.- Specified by:
canResolvein interfaceOperationArgumentResolver- Parameters:
type- argument type- Returns:
trueif an argument of the required type can be resolved, otherwisefalse
-
resolve
Description copied from interface:OperationArgumentResolverResolves an argument of the giventype.- Specified by:
resolvein interfaceOperationArgumentResolver- Type Parameters:
T- required type of the argument- Parameters:
type- argument type- Returns:
- an argument of the required type, or
null
-