public interface SerializationContext
Modifier and Type | Method and Description |
---|---|
boolean |
canMarshall(Class clazz)
Checks if the message or enum type can be marshalled (a marshaller was defined for it).
|
boolean |
canMarshall(String descriptorFullName) |
com.google.protobuf.Descriptors.EnumDescriptor |
getEnumDescriptor(String fullName) |
<T> BaseMarshaller<T> |
getMarshaller(Class<T> clazz) |
<T> BaseMarshaller<T> |
getMarshaller(String descriptorFullName) |
com.google.protobuf.Descriptors.Descriptor |
getMessageDescriptor(String fullName) |
<T> void |
registerMarshaller(Class<? extends T> clazz,
BaseMarshaller<T> marshaller) |
void |
registerProtofile(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor) |
void |
registerProtofile(InputStream in)
The input stream is not closed when finished.
|
void |
registerProtofile(String classpathResource) |
void registerProtofile(InputStream in) throws IOException, com.google.protobuf.Descriptors.DescriptorValidationException
in
- IOException
com.google.protobuf.Descriptors.DescriptorValidationException
void registerProtofile(String classpathResource) throws IOException, com.google.protobuf.Descriptors.DescriptorValidationException
IOException
com.google.protobuf.Descriptors.DescriptorValidationException
void registerProtofile(com.google.protobuf.Descriptors.FileDescriptor fileDescriptor)
com.google.protobuf.Descriptors.Descriptor getMessageDescriptor(String fullName)
com.google.protobuf.Descriptors.EnumDescriptor getEnumDescriptor(String fullName)
<T> void registerMarshaller(Class<? extends T> clazz, BaseMarshaller<T> marshaller)
boolean canMarshall(Class clazz)
clazz
- boolean canMarshall(String descriptorFullName)
<T> BaseMarshaller<T> getMarshaller(String descriptorFullName)
<T> BaseMarshaller<T> getMarshaller(Class<T> clazz)
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.