public class TypeJsonSerializerMap
extends java.lang.Object
json type serializers.| Modifier and Type | Field and Description |
|---|---|
protected jodd.util.collection.ClassMap<TypeJsonSerializer> |
cache |
protected jodd.util.collection.ClassMap<TypeJsonSerializer> |
map |
| Constructor and Description |
|---|
TypeJsonSerializerMap(boolean registerDefaults)
Creates new serializers map and optionally registers defaults.
|
| Modifier and Type | Method and Description |
|---|---|
protected TypeJsonSerializer |
_lookup(java.lang.Class type) |
TypeJsonSerializer |
lookup(java.lang.Class type)
Lookups for the
serializer for given type. |
void |
register(java.lang.Class type,
TypeJsonSerializer typeJsonSerializer)
Registers new serializer.
|
void |
registerDefaults()
Registers default set of
serializers. |
protected final jodd.util.collection.ClassMap<TypeJsonSerializer> map
protected final jodd.util.collection.ClassMap<TypeJsonSerializer> cache
public TypeJsonSerializerMap(boolean registerDefaults)
public void registerDefaults()
serializers.public void register(java.lang.Class type,
TypeJsonSerializer typeJsonSerializer)
public TypeJsonSerializer lookup(java.lang.Class type)
serializer for given type.
If serializer not found, then all interfaces and subclasses of the type are checked.
Finally, if no serializer is found, object's serializer is returned.protected TypeJsonSerializer _lookup(java.lang.Class type)
Copyright © 2003-2013 Jodd Team