|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConvertorCache
A convertor cache to allow re-use of convertors.
Method Summary | |
---|---|
boolean |
addConvertor(Class<?> clazz,
org.mortbay.util.ajax.JSON.Convertor convertor)
Adds the convertor mapped to the given clazz . |
org.mortbay.util.ajax.JSON.Convertor |
getConvertor(Class<?> clazz)
Gets a convertor from the given clazz . |
org.mortbay.util.ajax.JSON.Convertor |
getConvertor(Class<?> clazz,
boolean create)
Gets a convertor from the given clazz and will create one if
not found the flag create is true |
org.mortbay.util.ajax.JSON.Convertor |
getConvertor(Class<?> clazz,
boolean create,
boolean addClass)
Gets a convertor from the given clazz and will create one if
not found the flag create is true; If addClass is true,
the convertor will be configured to include the classname upon serialization. |
boolean |
hasConvertor(Class<?> clazz)
Checks if a convertor is mapped to the given clazz . |
org.mortbay.util.ajax.JSON.Convertor |
newConvertor(Class<?> clazz)
Creats a convertor based from the given clazz . |
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 interface org.mortbay.util.ajax.JSON.Convertor |
---|
fromJSON, toJSON |
Method Detail |
---|
org.mortbay.util.ajax.JSON.Convertor getConvertor(Class<?> clazz, boolean create)
clazz
and will create one if
not found the flag create
is true
org.mortbay.util.ajax.JSON.Convertor getConvertor(Class<?> clazz, boolean create, boolean addClass)
clazz
and will create one if
not found the flag create
is true; If addClass
is true,
the convertor will be configured to include the classname upon serialization.
org.mortbay.util.ajax.JSON.Convertor getConvertor(Class<?> clazz)
clazz
.
boolean addConvertor(Class<?> clazz, org.mortbay.util.ajax.JSON.Convertor convertor)
convertor
mapped to the given clazz
.
boolean hasConvertor(Class<?> clazz)
clazz
.
org.mortbay.util.ajax.JSON.Convertor newConvertor(Class<?> clazz)
clazz
.
org.mortbay.util.ajax.JSON.Convertor newConvertor(Class<?> clazz, boolean addClass)
clazz
; If addClass
is true,
the convertor will be configured to include the classname upon serialization.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |