Class MpConfigImpl

  • All Implemented Interfaces:
    Config

    @Deprecated(since="2.3.1")
    public class MpConfigImpl
    extends Object
    implements Config
    Deprecated.
    This is an internal class that was exposed accidentally. It will be package local in next major release.
    Implementation of the basic MicroProfile Config API.
    • Method Detail

      • getValue

        public <T> T getValue​(String propertyName,
                              Class<T> propertyType)
        Deprecated.
        Specified by:
        getValue in interface Config
      • unwrap

        public <T> T unwrap​(Class<T> aClass)
        Deprecated.
        Unwrap into an implementation. This method will be added in MP Config 2.0.
        Type Parameters:
        T - type of the class
        Parameters:
        aClass - class to unwrap to (only this class and Config are supported)
        Returns:
        typed instance
      • getConverter

        public <T> Optional<Converter<T>> getConverter​(Class<T> forType)
        Deprecated.
        Return the Converter used by this instance to produce instances of the specified type from string values. This method is from a future version of MP Config specification and may changed before it is released. It is nevertheless needed to process annotations with default values.
        Type Parameters:
        T - the conversion type
        Parameters:
        forType - the type to be produced by the converter
        Returns:
        an Optional containing the converter, or empty if no converter is available for the specified type