类 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 newProducibleOperationArgumentResolver
instance. -
方法概要
修饰符和类型方法说明boolean
canResolve
(Class<?> type) Return whether an argument of the giventype
can be resolved.<T> T
Resolves an argument of the giventype
.
-
构造器详细资料
-
ProducibleOperationArgumentResolver
Create a newProducibleOperationArgumentResolver
instance.- 参数:
accepts
- supplier that returns accepted mime types
-
-
方法详细资料
-
canResolve
从接口复制的说明:OperationArgumentResolver
Return whether an argument of the giventype
can be resolved.- 指定者:
canResolve
在接口中OperationArgumentResolver
- 参数:
type
- argument type- 返回:
true
if an argument of the required type can be resolved, otherwisefalse
-
resolve
从接口复制的说明:OperationArgumentResolver
Resolves an argument of the giventype
.- 指定者:
resolve
在接口中OperationArgumentResolver
- 类型参数:
T
- required type of the argument- 参数:
type
- argument type- 返回:
- an argument of the required type, or
null
-