接口 ResolvableTypeProvider
- 所有已知实现类:
PayloadApplicationEvent
public interface ResolvableTypeProvider
Any object can implement this interface to provide its actualResolvableType
.Such information is very useful when figuring out if the instance matches a generic signature as Java does not convey the signature at runtime.
Users of this interface should be careful in complex hierarchy scenarios, especially when the generic type signature of the class changes in sub-classes. It is always possible to return
null
to fallback on a default behavior.- 从以下版本开始:
- 4.2
- 作者:
- Stephane Nicoll
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ResolvableType
getResolvableType()
Return theResolvableType
describing this instance (ornull
if some sort of default should be applied instead).
方法详细资料
getResolvableType
@Nullable ResolvableType getResolvableType()
Return theResolvableType
describing this instance (ornull
if some sort of default should be applied instead).