Class StringToServerAddressConverter

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

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

    • StringToServerAddressConverter

      public StringToServerAddressConverter()
  • Method Details

    • convert

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