Package org.infinispan.protostream
Interface SerializationContextInitializer
-
public interface SerializationContextInitializer
An interface to be used in conjunction withAutoProtoSchemaBuilder
annotation. Just create an abstract class implementing this interface or an interface extending it and annotate it and the compiler (via a custom annotation processor) will generate a concrete implementation of it for you to use. This is a compile-time equivalent ofProtoSchemaBuilder
.- Since:
- 4.3
- Author:
- [email protected]
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getProtoFile()
Returns the contents of the proto file.String
getProtoFileName()
Returns the name of the proto file (which is allowed to contain slashes, so it could look like a path).void
registerMarshallers(SerializationContext serCtx)
void
registerSchema(SerializationContext serCtx)
-
-
-
Method Detail
-
getProtoFileName
String getProtoFileName()
Returns the name of the proto file (which is allowed to contain slashes, so it could look like a path).
-
getProtoFile
String getProtoFile() throws UncheckedIOException
Returns the contents of the proto file.- Throws:
UncheckedIOException
- if the file contents cannot be retrieved
-
registerSchema
void registerSchema(SerializationContext serCtx)
-
registerMarshallers
void registerMarshallers(SerializationContext serCtx)
-
-