|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.SerDeserializers
public final class SerDeserializers
Manages a map of deserializers that assist with data migration.
Deserializers handle situations where the data being read does not match the
bean in the classpath. See also RenameHandler.
Normally, it makes sense to customize the shared singleton instance, because the classpath is static and fixed and the transformations are common.
Implementations must be thread-safe singletons.
| Field Summary | |
|---|---|
static SerDeserializers |
INSTANCE
Shared global instance which can be mutated. |
| Constructor Summary | |
|---|---|
SerDeserializers()
Creates an instance. |
|
| Method Summary | |
|---|---|
SerDeserializer |
findDeserializer(Class<?> type)
Finds the deserializer for the specified type. |
ConcurrentMap<Class<?>,SerDeserializer> |
getDeserializers()
Gets the map of deserializers which can be modified. |
SerDeserializers |
register(Class<?> type,
SerDeserializer deserializer)
Adds the deserializer to be used for the specified type. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SerDeserializers INSTANCE
| Constructor Detail |
|---|
public SerDeserializers()
| Method Detail |
|---|
public SerDeserializers register(Class<?> type,
SerDeserializer deserializer)
type - the type, not nulldeserializer - the deserializer, not null
public ConcurrentMap<Class<?>,SerDeserializer> getDeserializers()
public SerDeserializer findDeserializer(Class<?> type)
The DefaultDeserializer is used if one has not been registered.
type - the type, not null
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||