Package org.infinispan.commons.marshall
Class PersistenceContextInitializerImpl
- java.lang.Object
-
- org.infinispan.commons.marshall.PersistenceContextInitializerImpl
-
- All Implemented Interfaces:
PersistenceContextInitializer,GeneratedSchema,SerializationContextInitializer
@Generated(value="org.infinispan.protostream.annotations.impl.processor.AutoProtoSchemaBuilderAnnotationProcessor", comments="Please do not edit this file!") public class PersistenceContextInitializerImpl extends Object implements PersistenceContextInitializer, GeneratedSchema
WARNING: Generated code! Do not edit!
-
-
Constructor Summary
Constructors Constructor Description PersistenceContextInitializerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetProtoFile()Returns the contents of the proto file as aString.StringgetProtoFileName()Returns the name of the proto file (which is allowed to contain slashes, so it could look like a path).ReadergetProtoFileReader()Convenience method to obtain aReaderof the schema file contents.voidregisterMarshallers(SerializationContext serCtx)Registers marshallers to the givenSerializationContext.This is always invoked afterSerializationContextInitializer.registerSchema(org.infinispan.protostream.SerializationContext).voidregisterSchema(SerializationContext serCtx)Registers schema files to the givenSerializationContext.
-
-
-
Method Detail
-
getProtoFileName
public String getProtoFileName()
Description copied from interface:SerializationContextInitializerReturns the name of the proto file (which is allowed to contain slashes, so it could look like a path).- Specified by:
getProtoFileNamein interfaceGeneratedSchema- Specified by:
getProtoFileNamein interfaceSerializationContextInitializer
-
getProtoFile
public String getProtoFile()
Description copied from interface:SerializationContextInitializerReturns the contents of the proto file as aString. The returned value must be guaranteed to be the same (equals) on each invocation. Implementations can return a constant or a value stored in memory but they are generally free to also retrieve it from somewhere else, including the classpath, the disk, or even a mechanism that can potentially fail with anUncheckedIOException.- Specified by:
getProtoFilein interfaceGeneratedSchema- Specified by:
getProtoFilein interfaceSerializationContextInitializer
-
getProtoFileReader
public Reader getProtoFileReader()
Description copied from interface:GeneratedSchemaConvenience method to obtain aReaderof the schema file contents. The caller is responsible for closing theReaderonce done with it.- Specified by:
getProtoFileReaderin interfaceGeneratedSchema
-
registerSchema
public void registerSchema(SerializationContext serCtx)
Description copied from interface:SerializationContextInitializerRegisters schema files to the givenSerializationContext. This is always invoked beforeSerializationContextInitializer.registerMarshallers(org.infinispan.protostream.SerializationContext).- Specified by:
registerSchemain interfaceSerializationContextInitializer
-
registerMarshallers
public void registerMarshallers(SerializationContext serCtx)
Description copied from interface:SerializationContextInitializerRegisters marshallers to the givenSerializationContext.This is always invoked afterSerializationContextInitializer.registerSchema(org.infinispan.protostream.SerializationContext).- Specified by:
registerMarshallersin interfaceSerializationContextInitializer
-
-