Class StringToWriteConcernConverter

java.lang.Object
io.micronaut.configuration.mongo.core.convert.StringToWriteConcernConverter
All Implemented Interfaces:
io.micronaut.core.convert.TypeConverter<CharSequence,com.mongodb.WriteConcern>

public class StringToWriteConcernConverter extends Object implements io.micronaut.core.convert.TypeConverter<CharSequence,com.mongodb.WriteConcern>
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • StringToWriteConcernConverter

      public StringToWriteConcernConverter()
  • Method Details

    • convert

      public Optional<com.mongodb.WriteConcern> convert(CharSequence object, Class<com.mongodb.WriteConcern> targetType, io.micronaut.core.convert.ConversionContext context)
      Specified by:
      convert in interface io.micronaut.core.convert.TypeConverter<CharSequence,com.mongodb.WriteConcern>