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
-
Field Summary
Fields inherited from interface io.micronaut.pulsar.schemas.SchemaResolver
AVRO_SCHEMA_NAME, JSON_SCHEMA_NAME, PROTOBUF_SCHEMA_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> org.apache.pulsar.client.api.Schema<T>
forArgument
(Class<T> pojo)
-
Constructor Details
-
ProtobufSchemaResolver
public ProtobufSchemaResolver(io.micronaut.protobuf.codec.ProtobufferCodec codec)
-
-
Method Details
-
forArgument
- Specified by:
forArgument
in interfaceSchemaResolver
-