public interface SerializationContext extends ImmutableSerializationContext
SerializationContext
.Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration()
Get the configuration.
|
<T> void |
registerMarshaller(BaseMarshaller<T> marshaller)
Register a type marshaller.
|
void |
registerProtoFiles(FileDescriptorSource source)
Register some proto schema definition files from a
FileDescriptorSource . |
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)
<T> void registerMarshaller(BaseMarshaller<T> marshaller)
T
- the Java type of the object being handled by the marshallermarshaller
- the marshaller instanceCopyright © 2017 JBoss, a division of Red Hat. All rights reserved.