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 |
|---|---|
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, getConfiguration, getDescriptorByName, getDescriptorByTypeId, getEnumDescriptor, getFileDescriptors, getGenericDescriptors, getMarshaller, getMarshaller, getMessageDescriptor, getTypeIdByName, getTypeNameByIdvoid registerProtoFiles(FileDescriptorSource source) throws DescriptorParserException
FileDescriptorSource.source - DescriptorParserExceptionvoid 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 © 2020 JBoss, a division of Red Hat. All rights reserved.