Java 类org.codehaus.jackson.map.ResolvableSerializer 实例源码

项目:ingress-indonesia-dev    文件:StdSerializerProvider.java   
protected JsonSerializer<Object> _handleContextualResolvable(JsonSerializer<Object> paramJsonSerializer, BeanProperty paramBeanProperty)
{
  if (!(paramJsonSerializer instanceof ContextualSerializer))
    return paramJsonSerializer;
  Object localObject = ((ContextualSerializer)paramJsonSerializer).createContextual(this._config, paramBeanProperty);
  if (localObject != paramJsonSerializer)
    if ((localObject instanceof ResolvableSerializer))
      ((ResolvableSerializer)localObject).resolve(this);
  while (true)
  {
    return localObject;
    localObject = paramJsonSerializer;
  }
}
项目:ingress-indonesia-dev    文件:SerializerCache.java   
public final void addAndResolveNonTypedSerializer(Class<?> paramClass, JsonSerializer<Object> paramJsonSerializer, SerializerProvider paramSerializerProvider)
{
  try
  {
    if (this._sharedMap.put(new SerializerCache.TypeKey(paramClass, false), paramJsonSerializer) == null)
      this._readOnlyMap = null;
    if ((paramJsonSerializer instanceof ResolvableSerializer))
      ((ResolvableSerializer)paramJsonSerializer).resolve(paramSerializerProvider);
    return;
  }
  finally
  {
  }
}
项目:ingress-indonesia-dev    文件:SerializerCache.java   
public final void addAndResolveNonTypedSerializer(JavaType paramJavaType, JsonSerializer<Object> paramJsonSerializer, SerializerProvider paramSerializerProvider)
{
  try
  {
    if (this._sharedMap.put(new SerializerCache.TypeKey(paramJavaType, false), paramJsonSerializer) == null)
      this._readOnlyMap = null;
    if ((paramJsonSerializer instanceof ResolvableSerializer))
      ((ResolvableSerializer)paramJsonSerializer).resolve(paramSerializerProvider);
    return;
  }
  finally
  {
  }
}