com.dyuproject.json
Class OverloadConvertorCache
java.lang.Object
com.dyuproject.json.StandardConvertorCache
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverloadConvertorCache
public OverloadConvertorCache()
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.