类 ProducibleOperationArgumentResolver
java.lang.Object
org.springframework.boot.actuate.endpoint.ProducibleOperationArgumentResolver
- 所有已实现的接口:
OperationArgumentResolver
public class ProducibleOperationArgumentResolver
extends Object
implements OperationArgumentResolver
- 从以下版本开始:
- 2.5.0
- 作者:
- Andy Wilkinson, Phillip Webb
-
构造器概要
构造器构造器说明ProducibleOperationArgumentResolver(Supplier<List<String>> accepts) Create a newProducibleOperationArgumentResolverinstance. -
方法概要
修饰符和类型方法说明booleancanResolve(Class<?> type) Return whether an argument of the giventypecan be resolved.<T> TResolves an argument of the giventype.
-
构造器详细资料
-
ProducibleOperationArgumentResolver
Create a newProducibleOperationArgumentResolverinstance.- 参数:
accepts- supplier that returns accepted mime types
-
-
方法详细资料
-
canResolve
从接口复制的说明:OperationArgumentResolverReturn whether an argument of the giventypecan be resolved.- 指定者:
canResolve在接口中OperationArgumentResolver- 参数:
type- argument type- 返回:
trueif an argument of the required type can be resolved, otherwisefalse
-
resolve
从接口复制的说明:OperationArgumentResolverResolves an argument of the giventype.- 指定者:
resolve在接口中OperationArgumentResolver- 类型参数:
T- required type of the argument- 参数:
type- argument type- 返回:
- an argument of the required type, or
null
-