Class AutomaticConverter
- java.lang.Object
-
- fish.payara.nucleus.microprofile.config.converters.AutomaticConverter
-
public class AutomaticConverter extends Object
AutomaticConverter
s are created "on the fly" in case noConverter
as found but the target type has a suitable factoryMethod
orConstructor
.- Author:
- steve
-
-
Constructor Summary
Constructors Constructor Description AutomaticConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
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
-
-