com.dyuproject.json
Class OverloadConvertorCache

java.lang.Object
  extended by com.dyuproject.json.StandardConvertorCache
      extended by com.dyuproject.json.OverloadConvertorCache
All Implemented Interfaces:
ConvertorCache, org.mortbay.util.ajax.JSON.Convertor

public class OverloadConvertorCache
extends StandardConvertorCache

A convertor cache that creates an OverloadPojoConvertor from a given class.

Author:
David Yu
Date created:
Feb 21, 2009

Field Summary
 
Fields inherited from class com.dyuproject.json.StandardConvertorCache
UNRESOLVED_CONVERTOR
 
Constructor Summary
OverloadConvertorCache()
           
 
Method Summary
 org.mortbay.util.ajax.JSON.Convertor newConvertor(Class<?> clazz, boolean addClass)
          Creats a convertor based from the given clazz; If addClass is true, the convertor will be configured to include the classname upon serialization.
 
Methods inherited from class com.dyuproject.json.StandardConvertorCache
addConvertor, fromJSON, getConvertor, getConvertor, getConvertor, getConvertor, hasConvertor, newConvertor, toJSON
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverloadConvertorCache

public OverloadConvertorCache()
Method Detail

newConvertor

public org.mortbay.util.ajax.JSON.Convertor newConvertor(Class<?> clazz,
                                                         boolean addClass)
Description copied from interface: ConvertorCache
Creats a convertor based from the given clazz; If addClass is true, the convertor will be configured to include the classname upon serialization.

Specified by:
newConvertor in interface ConvertorCache
Overrides:
newConvertor in class StandardConvertorCache


Copyright © 2008-2013. All Rights Reserved.