public interface SerializationContextInitializer
AutoProtoSchemaBuilder
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 of ProtoSchemaBuilder
.Modifier and Type | Method and 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) |
String getProtoFileName()
String getProtoFile() throws UncheckedIOException
UncheckedIOException
- if the file contents cannot be retrievedvoid registerSchema(SerializationContext serCtx)
void registerMarshallers(SerializationContext serCtx)
Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.