Class CommonTypesSchema
java.lang.Object
org.infinispan.protostream.types.java.CommonTypesSchema
- All Implemented Interfaces:
GeneratedSchema,SerializationContextInitializer,CommonTypes
@Generated(value="org.infinispan.protostream.annotations.impl.processor.AutoProtoSchemaBuilderAnnotationProcessor",
comments="Please do not edit this file!")
public class CommonTypesSchema
extends Object
implements CommonTypes
WARNING: Generated code! Do not edit!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the contents of the proto file as aString.Returns the name of the proto file.Convenience method to obtain aReaderof the schema file contents.voidRegisters marshallers to the givenSerializationContext.This is always invoked afterSerializationContextInitializer.registerSchema(org.infinispan.protostream.SerializationContext).voidregisterSchema(SerializationContext serCtx) Registers schema files to the givenSerializationContext.
-
Constructor Details
-
CommonTypesSchema
public CommonTypesSchema()
-
-
Method Details
-
getProtoFileName
Description copied from interface:GeneratedSchemaReturns the name of the proto file. The name is allowed to contain slashes so it can look like an absolute or relative path. The returned value must be the same (equals) on each invocation.- Specified by:
getProtoFileNamein interfaceGeneratedSchema- Specified by:
getProtoFileNamein interfaceSerializationContextInitializer
-
getProtoFile
Description copied from interface:GeneratedSchemaReturns 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
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
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
Description copied from interface:SerializationContextInitializerRegisters marshallers to the givenSerializationContext.This is always invoked afterSerializationContextInitializer.registerSchema(org.infinispan.protostream.SerializationContext).- Specified by:
registerMarshallersin interfaceSerializationContextInitializer
-