Class DefaultSerializationContext
java.lang.Object
org.wildfly.clustering.marshalling.protostream.DefaultSerializationContext
- All Implemented Interfaces:
org.infinispan.protostream.ImmutableSerializationContext,org.infinispan.protostream.SerializationContext,SerializationContext
Decorates
SerializationContextImpl, ensuring that all registered marshallers implement ProtoStreamMarshaller.
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.MarshallerProviderNested classes/interfaces inherited from interface org.wildfly.clustering.marshalling.protostream.SerializationContext
SerializationContext.InstanceMarshallerProvider<T> -
Constructor Summary
Constructors -
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) org.infinispan.protostream.ImmutableSerializationContext<T> ProtoStreamMarshaller<T> getMarshaller(Class<T> clazz) <T> ProtoStreamMarshaller<T> getMarshaller(String fullTypeName) <T> ProtoStreamMarshaller<T> getMarshaller(T object) org.infinispan.protostream.descriptors.DescriptorgetMessageDescriptor(String fullTypeName) getTypeIdByName(String fullTypeName) Deprecated.getTypeNameById(Integer typeId) Deprecated.voidregisterMarshaller(ProtoStreamMarshaller<?> 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.marshalling.protostream.SerializationContext
registerMarshaller
-
Constructor Details
-
DefaultSerializationContext
public DefaultSerializationContext()
-
-
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
- Specified by:
getMarshallerin interfaceorg.infinispan.protostream.ImmutableSerializationContext- Specified by:
getMarshallerin interfaceSerializationContext
-
getMarshaller
- Specified by:
getMarshallerin interfaceorg.infinispan.protostream.ImmutableSerializationContext- Specified by:
getMarshallerin interfaceSerializationContext
-
getMarshaller
- Specified by:
getMarshallerin interfaceorg.infinispan.protostream.ImmutableSerializationContext- Specified by:
getMarshallerin interfaceSerializationContext
-
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
- Specified by:
registerMarshallerin interfaceSerializationContext
-
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
-
getImmutableSerializationContext
public org.infinispan.protostream.ImmutableSerializationContext getImmutableSerializationContext()- Specified by:
getImmutableSerializationContextin interfaceSerializationContext
-