Class JsonSchemaResolver

java.lang.Object
io.micronaut.pulsar.schemas.json.JsonSchemaResolver
All Implemented Interfaces:
SchemaResolver

@Singleton @Named("JSON_SCHEMA_RESOLVER") @Requires(classes=io.micronaut.json.JsonMapper.class) public class JsonSchemaResolver extends Object implements SchemaResolver
JSON schema resolver.
Since:
1.1.0
Author:
Haris Secic
  • Constructor Details

    • JsonSchemaResolver

      public JsonSchemaResolver(io.micronaut.json.JsonMapper mapper)
  • Method Details

    • forArgument

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