Class ProtobufSchemaResolver

java.lang.Object
io.micronaut.pulsar.schemas.protobuf.ProtobufSchemaResolver
All Implemented Interfaces:
SchemaResolver

@Singleton @Named("PROTOBUF_SCHEMA_RESOLVER") @Requires(classes=io.micronaut.protobuf.codec.ProtobufferCodec.class) public class ProtobufSchemaResolver extends Object implements SchemaResolver
Protobuf schema resolver.
Since:
1.1.0
Author:
Haris Secic
  • Constructor Details

    • ProtobufSchemaResolver

      public ProtobufSchemaResolver(io.micronaut.protobuf.codec.ProtobufferCodec codec)
  • Method Details

    • forArgument

      public <T> org.apache.pulsar.client.api.Schema<T> forArgument(Class<T> pojo)
      Specified by:
      forArgument in interface SchemaResolver