|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.muse.core.serializer.SerializerRegistry
public class SerializerRegistry
SerializerRegistry is a singleton component that keeps track of what Java types have Muse Serializers for use by SOAP handlers and user code. The class will automatically register all of Muse's built-in serializers for basic types when it is instantiated; the Muse core engine will also register user-defined serializers when it finds them in the deployment descriptor. Although the deployment descriptor is the preferred way of adding a serializer to the registry, there is nothing preventing a user from doing so programmtically using the registerSerializer() method.
Nested Class Summary | |
---|---|
protected class |
SerializerRegistry.ClassComparator
ClassComparator sorts java.lang.Class objects by name (ABC order). |
Method Summary | |
---|---|
static SerializerRegistry |
getInstance()
|
Serializer |
getSerializer(Class type)
|
void |
registerSerializer(Class type,
Serializer ser)
Associates the given serializer with the type and any of its sub-types. |
protected Serializer |
searchClassHierarchy(Class type)
Looks through the parent class and interfaces of the given type to see if one of them has a registered serializer that could be used on the sub-type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SerializerRegistry getInstance()
public Serializer getSerializer(Class type)
type
- The Java class that will be serialized to XML (and back).
public void registerSerializer(Class type, Serializer ser)
type
- ser
- protected Serializer searchClassHierarchy(Class type)
type
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |