Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.client.api
Interface MarshallerFactory


public interface MarshallerFactory

Author:
Mike Brock , Christian Sadilek

Method Summary
 Marshaller<Object> getMarshaller(String encodedType)
          Returns a Marshaller capable of handling the specified encodedType
 void registerMarshaller(String fqcn, Marshaller<Object> marshaller)
          Registers a Marshaller for the type with the provided fully qualified class name.
 

Method Detail

getMarshaller

Marshaller<Object> getMarshaller(String encodedType)
Returns a Marshaller capable of handling the specified encodedType

Parameters:
encodedType - The fully-qualified Java class name of the encoded type
Returns:
a marshaller instance.

registerMarshaller

void registerMarshaller(String fqcn,
                        Marshaller<Object> marshaller)
Registers a Marshaller for the type with the provided fully qualified class name.

Parameters:
fqcn - the fully qualified type name of the marshallable type.
marshaller - the marshaller instance

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.