Class NativeSerializationContext
java.lang.Object
org.wildfly.clustering.marshalling.protostream.NativeSerializationContext
- All Implemented Interfaces:
org.infinispan.protostream.ImmutableSerializationContext,org.infinispan.protostream.SerializationContext
- Direct Known Subclasses:
DefaultSerializationContext
public class NativeSerializationContext
extends Object
implements org.infinispan.protostream.SerializationContext
Native serialization context decorator.
We have to use the decorator pattern since SerializationContextImpl is final.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.protostream.SerializationContext
org.infinispan.protostream.SerializationContext.InstanceMarshallerProvider<T extends Object>, org.infinispan.protostream.SerializationContext.MarshallerProvider -
Constructor Summary
ConstructorsConstructorDescriptionNativeSerializationContext(org.infinispan.protostream.SerializationContext context) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanMarshall(Class<?> javaClass) booleancanMarshall(Object object) booleancanMarshall(String fullTypeName) org.infinispan.protostream.config.Configurationorg.infinispan.protostream.descriptors.GenericDescriptorgetDescriptorByName(String fullTypeName) org.infinispan.protostream.descriptors.GenericDescriptorgetDescriptorByTypeId(Integer typeId) org.infinispan.protostream.descriptors.EnumDescriptorgetEnumDescriptor(String fullTypeName) <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.DescriptorgetMessageDescriptor(String fullTypeName) getTypeIdByName(String fullTypeName) Deprecated.getTypeNameById(Integer typeId) Deprecated.voidregisterMarshaller(org.infinispan.protostream.BaseMarshaller<?> marshaller) voidregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.InstanceMarshallerProvider<?> provider) voidregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.MarshallerProvider provider) Deprecated.voidregisterProtoFiles(org.infinispan.protostream.FileDescriptorSource source) voidunregisterMarshaller(org.infinispan.protostream.BaseMarshaller<?> marshaller) voidunregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.InstanceMarshallerProvider<?> provider) voidunregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.MarshallerProvider provider) Deprecated.voidunregisterProtoFile(String fileName) voidunregisterProtoFiles(Set<String> fileNames)
-
Constructor Details
-
NativeSerializationContext
public NativeSerializationContext(org.infinispan.protostream.SerializationContext context)
-
-
Method Details
-
getConfiguration
public org.infinispan.protostream.config.Configuration getConfiguration()- Specified by:
getConfigurationin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getFileDescriptors
- Specified by:
getFileDescriptorsin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getGenericDescriptors
- Specified by:
getGenericDescriptorsin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getMessageDescriptor
- Specified by:
getMessageDescriptorin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getEnumDescriptor
- Specified by:
getEnumDescriptorin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
canMarshall
- Specified by:
canMarshallin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
canMarshall
- Specified by:
canMarshallin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
canMarshall
- Specified by:
canMarshallin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getMarshaller
public <T> org.infinispan.protostream.BaseMarshaller<T> getMarshaller(T object) - Specified by:
getMarshallerin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getMarshaller
- Specified by:
getMarshallerin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getMarshaller
- Specified by:
getMarshallerin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getTypeNameById
Deprecated.- Specified by:
getTypeNameByIdin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getTypeIdByName
Deprecated.- Specified by:
getTypeIdByNamein interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getDescriptorByTypeId
public org.infinispan.protostream.descriptors.GenericDescriptor getDescriptorByTypeId(Integer typeId) - Specified by:
getDescriptorByTypeIdin interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
getDescriptorByName
public org.infinispan.protostream.descriptors.GenericDescriptor getDescriptorByName(String fullTypeName) - Specified by:
getDescriptorByNamein interfaceorg.infinispan.protostream.ImmutableSerializationContext
-
registerProtoFiles
public void registerProtoFiles(org.infinispan.protostream.FileDescriptorSource source) throws org.infinispan.protostream.DescriptorParserException - Specified by:
registerProtoFilesin interfaceorg.infinispan.protostream.SerializationContext- Throws:
org.infinispan.protostream.DescriptorParserException
-
unregisterProtoFile
- Specified by:
unregisterProtoFilein interfaceorg.infinispan.protostream.SerializationContext
-
unregisterProtoFiles
- Specified by:
unregisterProtoFilesin interfaceorg.infinispan.protostream.SerializationContext
-
registerMarshaller
public void registerMarshaller(org.infinispan.protostream.BaseMarshaller<?> marshaller) - Specified by:
registerMarshallerin interfaceorg.infinispan.protostream.SerializationContext
-
unregisterMarshaller
public void unregisterMarshaller(org.infinispan.protostream.BaseMarshaller<?> marshaller) - Specified by:
unregisterMarshallerin interfaceorg.infinispan.protostream.SerializationContext
-
registerMarshallerProvider
@Deprecated public void registerMarshallerProvider(org.infinispan.protostream.SerializationContext.MarshallerProvider provider) Deprecated.- Specified by:
registerMarshallerProviderin interfaceorg.infinispan.protostream.SerializationContext
-
unregisterMarshallerProvider
@Deprecated public void unregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.MarshallerProvider provider) Deprecated.- Specified by:
unregisterMarshallerProviderin interfaceorg.infinispan.protostream.SerializationContext
-
registerMarshallerProvider
public void registerMarshallerProvider(org.infinispan.protostream.SerializationContext.InstanceMarshallerProvider<?> provider) - Specified by:
registerMarshallerProviderin interfaceorg.infinispan.protostream.SerializationContext
-
unregisterMarshallerProvider
public void unregisterMarshallerProvider(org.infinispan.protostream.SerializationContext.InstanceMarshallerProvider<?> provider) - Specified by:
unregisterMarshallerProviderin interfaceorg.infinispan.protostream.SerializationContext
-