/**
* Get the {@link PropertySetRefIntrospector} instance to use.
* @return The {@link PropertySetRefIntrospector} instance to use, from {@link ContextResolver} if available or the
* default one
*/
private PropertySetRefIntrospector getPropertySetRefIntrospector() {
if (propertySetRefIntrospector == null) {
// init using a contextresolver, if available
ContextResolver<PropertySetRefIntrospector> contextResolver = providers
.getContextResolver(PropertySetRefIntrospector.class, MediaType.APPLICATION_JSON_TYPE);
if (contextResolver != null) {
propertySetRefIntrospector = contextResolver.getContext(PropertySetRefIntrospector.class);
}
if (propertySetRefIntrospector == null) {
// use default
propertySetRefIntrospector = PropertySetRefIntrospector.getDefault();
}
}
return propertySetRefIntrospector;
}
GsonJsonProvider.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:holon-json
作者:
评论列表
文章目录