Class ArrayConverter<T>

  • Type Parameters:
    T - element type of the array, can be both a primitive or a reference type
    All Implemented Interfaces:
    Serializable, org.eclipse.microprofile.config.spi.Converter<Object>

    public final class ArrayConverter<T>
    extends Object
    implements org.eclipse.microprofile.config.spi.Converter<Object>
    Converts reference and primitive arrays. Argument for Converter can only be Object as both reference and primitive arrays are created.
    See Also:
    Serialized Form
    • Constructor Detail

      • ArrayConverter

        public ArrayConverter​(Class<T> elementType,
                              org.eclipse.microprofile.config.spi.Converter<T> elementConverter)
    • Method Detail

      • convert

        public Object convert​(String value)
        Specified by:
        convert in interface org.eclipse.microprofile.config.spi.Converter<T>