public abstract class AbstractJsonFactory extends Object implements JsonFactory
Modifier | Constructor and Description |
---|---|
protected |
AbstractJsonFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addCodecs(Class<?> pojo,
JsonCodec<?> codec) |
void |
clearCodecs() |
JsonCodec<?> |
codec(Class<?> pojo)
Returns a given codec for the given POJO.
|
boolean |
hasCodec(Class<?> pojo)
Sees if this JsonFactory has a codec for the given POJO class.
|
int |
hashCode() |
void |
removeCodecs(Class<?> pojo) |
InputStream |
schema()
Returns the JSON schema for this factory.
|
public void removeCodecs(Class<?> pojo)
public void clearCodecs()
public InputStream schema()
JsonFactory
schema
in interface JsonFactory
public JsonCodec<?> codec(Class<?> pojo)
JsonFactory
codec
in interface JsonFactory
pojo
- POJO for which a JSON codec is requested.public boolean hasCodec(Class<?> pojo)
JsonFactory
hasCodec
in interface JsonFactory
pojo
- POJO class to be encoded/decodedCopyright © 2015. All Rights Reserved.