public interface SerializationContext extends ImmutableSerializationContext
SerializationContext
.Modifier and Type | Interface and Description |
---|---|
static interface |
SerializationContext.MarshallerProvider
Interface to be implemented for dynamic lookup of marshallers.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration()
Get the configuration.
|
void |
registerMarshaller(BaseMarshaller<?> marshaller)
Register a type marshaller.
|
void |
registerMarshallerProvider(SerializationContext.MarshallerProvider marshallerProvider) |
void |
registerProtoFiles(FileDescriptorSource source)
Register some proto schema definition files from a
FileDescriptorSource . |
void |
unregisterMarshaller(BaseMarshaller<?> marshaller) |
void |
unregisterMarshallerProvider(SerializationContext.MarshallerProvider marshallerProvider) |
void |
unregisterProtoFile(String fileName)
Unregisters a file.
|
canMarshall, canMarshall, getDescriptorByName, getDescriptorByTypeId, getEnumDescriptor, getFileDescriptors, getMarshaller, getMarshaller, getMessageDescriptor, getTypeIdByName, getTypeNameById
Configuration getConfiguration()
void registerProtoFiles(FileDescriptorSource source) throws IOException, DescriptorParserException
FileDescriptorSource
.source
- IOException
DescriptorParserException
void unregisterProtoFile(String fileName)
void registerMarshaller(BaseMarshaller<?> marshaller)
marshaller
- the marshaller instancevoid unregisterMarshaller(BaseMarshaller<?> marshaller)
void registerMarshallerProvider(SerializationContext.MarshallerProvider marshallerProvider)
void unregisterMarshallerProvider(SerializationContext.MarshallerProvider marshallerProvider)
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.