Class AutomaticConverter


  • public class AutomaticConverter
    extends Object
    Automatic Converters are created "on the fly" in case no Converter as found but the target type has a suitable factory Method or Constructor.
    Author:
    steve
    • Constructor Detail

      • AutomaticConverter

        public AutomaticConverter()
    • Method Detail

      • forType

        public static <T> Optional<org.eclipse.microprofile.config.spi.Converter<T>> forType​(Class<T> type)
        Return implicit converter for a class following section "Automatic Converters" of the spec, if class has matching construct
        Type Parameters:
        T - target type of property
        Parameters:
        generalType - target type of property
        Returns:
        Optional of converter using a method found in the class, empty if none were found