@Singleton public class StringToReadPreferenceConverter extends Object implements io.micronaut.core.convert.TypeConverter<CharSequence,com.mongodb.ReadPreference>
ReadPreference
objects.Constructor and Description |
---|
StringToReadPreferenceConverter() |
Modifier and Type | Method and Description |
---|---|
Optional<com.mongodb.ReadPreference> |
convert(CharSequence object,
Class<com.mongodb.ReadPreference> targetType,
io.micronaut.core.convert.ConversionContext context) |
public Optional<com.mongodb.ReadPreference> convert(CharSequence object, Class<com.mongodb.ReadPreference> targetType, io.micronaut.core.convert.ConversionContext context)
convert
in interface io.micronaut.core.convert.TypeConverter<CharSequence,com.mongodb.ReadPreference>