public class DefaultSerializationContext extends Object implements org.infinispan.protostream.SerializationContext, Supplier<org.infinispan.protostream.ImmutableSerializationContext>
SerializationContextImpl, ensuring that all registered marshallers implement ProtoStreamMarshaller.
We have to use the decorator pattern since SerializationContextImpl is final.| Constructor and Description |
|---|
DefaultSerializationContext() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMarshall(Class<?> javaClass) |
boolean |
canMarshall(Object object) |
boolean |
canMarshall(String fullTypeName) |
org.infinispan.protostream.ImmutableSerializationContext |
get() |
org.infinispan.protostream.config.Configuration |
getConfiguration() |
org.infinispan.protostream.descriptors.GenericDescriptor |
getDescriptorByName(String fullTypeName) |
org.infinispan.protostream.descriptors.GenericDescriptor |
getDescriptorByTypeId(Integer typeId) |
org.infinispan.protostream.descriptors.EnumDescriptor |
getEnumDescriptor(String fullTypeName) |
Map<String,org.infinispan.protostream.descriptors.FileDescriptor> |
getFileDescriptors() |
Map<String,org.infinispan.protostream.descriptors.GenericDescriptor> |
getGenericDescriptors() |
<T> org.infinispan.protostream.BaseMarshaller<T> |
getMarshaller(Class<T> clazz) |
<T> org.infinispan.protostream.BaseMarshaller<T> |
getMarshaller(String fullTypeName) |
<T> org.infinispan.protostream.BaseMarshaller<T> |
getMarshaller(T object) |
org.infinispan.protostream.descriptors.Descriptor |
getMessageDescriptor(String fullTypeName) |
Integer |
getTypeIdByName(String fullTypeName)
Deprecated.
|
String |
getTypeNameById(Integer typeId)
Deprecated.
|
void |
registerMarshaller(org.infinispan.protostream.BaseMarshaller<?> marshaller) |
void |
registerMarshallerProvider(org.infinispan.protostream.SerializationContext.InstanceMarshallerProvider<?> provider) |
void |
registerMarshallerProvider(org.infinispan.protostream.SerializationContext.MarshallerProvider provider)
Deprecated.
|
void |
registerProtoFiles(org.infinispan.protostream.FileDescriptorSource source) |
void |
unregisterMarshaller(org.infinispan.protostream.BaseMarshaller<?> marshaller) |
void |
unregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.InstanceMarshallerProvider<?> provider) |
void |
unregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.MarshallerProvider provider)
Deprecated.
|
void |
unregisterProtoFile(String fileName) |
void |
unregisterProtoFiles(Set<String> fileNames) |
public org.infinispan.protostream.ImmutableSerializationContext get()
public org.infinispan.protostream.config.Configuration getConfiguration()
getConfiguration in interface org.infinispan.protostream.ImmutableSerializationContextpublic Map<String,org.infinispan.protostream.descriptors.FileDescriptor> getFileDescriptors()
getFileDescriptors in interface org.infinispan.protostream.ImmutableSerializationContextpublic Map<String,org.infinispan.protostream.descriptors.GenericDescriptor> getGenericDescriptors()
getGenericDescriptors in interface org.infinispan.protostream.ImmutableSerializationContextpublic org.infinispan.protostream.descriptors.Descriptor getMessageDescriptor(String fullTypeName)
getMessageDescriptor in interface org.infinispan.protostream.ImmutableSerializationContextpublic org.infinispan.protostream.descriptors.EnumDescriptor getEnumDescriptor(String fullTypeName)
getEnumDescriptor in interface org.infinispan.protostream.ImmutableSerializationContextpublic boolean canMarshall(Class<?> javaClass)
canMarshall in interface org.infinispan.protostream.ImmutableSerializationContextpublic boolean canMarshall(String fullTypeName)
canMarshall in interface org.infinispan.protostream.ImmutableSerializationContextpublic boolean canMarshall(Object object)
canMarshall in interface org.infinispan.protostream.ImmutableSerializationContextpublic <T> org.infinispan.protostream.BaseMarshaller<T> getMarshaller(T object)
getMarshaller in interface org.infinispan.protostream.ImmutableSerializationContextpublic <T> org.infinispan.protostream.BaseMarshaller<T> getMarshaller(String fullTypeName)
getMarshaller in interface org.infinispan.protostream.ImmutableSerializationContextpublic <T> org.infinispan.protostream.BaseMarshaller<T> getMarshaller(Class<T> clazz)
getMarshaller in interface org.infinispan.protostream.ImmutableSerializationContext@Deprecated public String getTypeNameById(Integer typeId)
getTypeNameById in interface org.infinispan.protostream.ImmutableSerializationContext@Deprecated public Integer getTypeIdByName(String fullTypeName)
getTypeIdByName in interface org.infinispan.protostream.ImmutableSerializationContextpublic org.infinispan.protostream.descriptors.GenericDescriptor getDescriptorByTypeId(Integer typeId)
getDescriptorByTypeId in interface org.infinispan.protostream.ImmutableSerializationContextpublic org.infinispan.protostream.descriptors.GenericDescriptor getDescriptorByName(String fullTypeName)
getDescriptorByName in interface org.infinispan.protostream.ImmutableSerializationContextpublic void registerProtoFiles(org.infinispan.protostream.FileDescriptorSource source)
throws org.infinispan.protostream.DescriptorParserException
registerProtoFiles in interface org.infinispan.protostream.SerializationContextorg.infinispan.protostream.DescriptorParserExceptionpublic void unregisterProtoFile(String fileName)
unregisterProtoFile in interface org.infinispan.protostream.SerializationContextpublic void unregisterProtoFiles(Set<String> fileNames)
unregisterProtoFiles in interface org.infinispan.protostream.SerializationContextpublic void registerMarshaller(org.infinispan.protostream.BaseMarshaller<?> marshaller)
registerMarshaller in interface org.infinispan.protostream.SerializationContextpublic void unregisterMarshaller(org.infinispan.protostream.BaseMarshaller<?> marshaller)
unregisterMarshaller in interface org.infinispan.protostream.SerializationContext@Deprecated public void registerMarshallerProvider(org.infinispan.protostream.SerializationContext.MarshallerProvider provider)
registerMarshallerProvider in interface org.infinispan.protostream.SerializationContext@Deprecated public void unregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.MarshallerProvider provider)
unregisterMarshallerProvider in interface org.infinispan.protostream.SerializationContextpublic void registerMarshallerProvider(org.infinispan.protostream.SerializationContext.InstanceMarshallerProvider<?> provider)
registerMarshallerProvider in interface org.infinispan.protostream.SerializationContextpublic void unregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.InstanceMarshallerProvider<?> provider)
unregisterMarshallerProvider in interface org.infinispan.protostream.SerializationContextCopyright © 2021 JBoss by Red Hat. All rights reserved.