Class SimplePropertySource<T>

  • Type Parameters:
    T - type of object to invoke properties on
    All Implemented Interfaces:
    PropertySource<T>

    public final class SimplePropertySource<T>
    extends AbstractPropertySource<T>
    Reads simple properties and returns an initialized object of the supplied type.
    • Constructor Detail

      • SimplePropertySource

        public SimplePropertySource​(T t)
        Creates a new simple property source using the default properties file.
        Parameters:
        t - object to invoke properties on
      • SimplePropertySource

        public SimplePropertySource​(T t,
                                    String... paths)
        Creates a new simple property source.
        Parameters:
        t - object to invoke properties on
        paths - to read properties from
      • SimplePropertySource

        public SimplePropertySource​(T t,
                                    Reader... readers)
        Creates a new simple property source.
        Parameters:
        t - object to invoke properties on
        readers - to read properties from
      • SimplePropertySource

        public SimplePropertySource​(T t,
                                    Properties props)
        Creates a new simple property source.
        Parameters:
        t - object to invoke properties on
        props - to read properties from
      • SimplePropertySource

        public SimplePropertySource​(T t,
                                    PropertySource.PropertyDomain domain,
                                    Properties props)
        Creates a new simple property source.
        Parameters:
        t - object to invoke properties on
        domain - that properties are in
        props - to read properties from
    • Method Detail

      • initialize

        public void initialize()
        Description copied from interface: PropertySource
        Initializes the object for this property source.