Class RiverMarshallerFactory
java.lang.Object
org.jboss.marshalling.AbstractMarshallerFactory
org.jboss.marshalling.river.RiverMarshallerFactory
- All Implemented Interfaces:
MarshallerFactory
The River marshaller factory implementation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance of a River marshaller factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateMarshaller(MarshallingConfiguration configuration) Create a marshaller from this configuration.createUnmarshaller(MarshallingConfiguration configuration) Create an unmarshaller from this configuration.protected intGet the default version, which is used if none was configured.
-
Field Details
-
registry
-
-
Constructor Details
-
RiverMarshallerFactory
public RiverMarshallerFactory()Construct a new instance of a River marshaller factory.
-
-
Method Details
-
createUnmarshaller
Create an unmarshaller from this configuration.- Parameters:
configuration- the marshalling configuration to use- Returns:
- an unmarshaller
- Throws:
IOException- if an error occurs
-
createMarshaller
Create a marshaller from this configuration.- Parameters:
configuration- the marshalling configuration to use- Returns:
- a marshaller
- Throws:
IOException- if an error occurs
-
getDefaultVersion
protected int getDefaultVersion()Description copied from class:AbstractMarshallerFactoryGet the default version, which is used if none was configured. This base implementation returns -1.- Overrides:
getDefaultVersionin classAbstractMarshallerFactory- Returns:
- the default version to use
-