|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.marshal.MarshalFactory
This class will provide marshallers and unmarshallers for data based on the data type want to marshal to. The most common will be just to serialize the data. However, may have jaxrpc, IIOP, serializers. Can also have marshallers and unmarshallers based on class type. For example, might be marshaller/unmarshaller for the Transaction class.
Field Summary | |
protected static org.jboss.logging.Logger |
log
|
Constructor Summary | |
MarshalFactory()
|
Method Summary | |
static void |
addMarshaller(Class classType,
Marshaller marshaller,
UnMarshaller unMarshaller)
Will add the marshaller and unmarshaller based on class type. |
static void |
addMarshaller(String dataType,
Marshaller marshaller,
UnMarshaller unMarshaller)
Adds the marshaller and unmarshaller based on data type. |
static Marshaller |
getMarshaller(Class classType)
Looks up marshaller by class type. |
static Marshaller |
getMarshaller(InvokerLocator locator,
ClassLoader classLoader)
Will try to look up marshaller by first looking for data type parameter within locator and then using that to look up marhsaller locally. |
static Marshaller |
getMarshaller(String dataType)
Gets marshaller based on data type (i.e. |
static UnMarshaller |
getUnMarshaller(Class classType)
Returns unmarshaller by class type. |
static UnMarshaller |
getUnMarshaller(InvokerLocator locator,
ClassLoader classLoader)
Will try to look up unmarshaller by first looking for data type parameter within locator and then using that to look up unmarshaller locally. |
static UnMarshaller |
getUnMarshaller(String dataType)
Gets the marshaller based on data type (i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.jboss.logging.Logger log
Constructor Detail |
public MarshalFactory()
Method Detail |
public static void addMarshaller(Class classType, Marshaller marshaller, UnMarshaller unMarshaller)
classType
- marshaller
- unMarshaller
- public static void addMarshaller(String dataType, Marshaller marshaller, UnMarshaller unMarshaller)
dataType
- marshaller
- unMarshaller
- public static Marshaller getMarshaller(Class classType)
classType
-
public static UnMarshaller getUnMarshaller(Class classType)
classType
-
public static Marshaller getMarshaller(String dataType)
dataType
-
public static UnMarshaller getUnMarshaller(String dataType)
dataType
-
public static Marshaller getMarshaller(InvokerLocator locator, ClassLoader classLoader)
locator
- classLoader
-
public static UnMarshaller getUnMarshaller(InvokerLocator locator, ClassLoader classLoader)
locator
- classLoader
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |