Class DummySource<T>

  • All Implemented Interfaces:
    Source<T>

    public class DummySource<T>
    extends AbstractSource<T>
    implements Source<T>
    A dummy Source for internal purposes.
    Since:
    2.1.0
    Author:
    oswaldo.bapvic.jr (Oswaldo Junior)
    • Constructor Detail

      • DummySource

        public DummySource()
        Builds a dummy source.
    • Method Detail

      • load

        public T load​(Mapper<T> mapper)
        Description copied from interface: Source
        Applies a specific configuration loading strategy and returns a mapped bean containing the retrieved data, throwing an exception if the operation fails.
        Specified by:
        load in interface Source<T>
        Parameters:
        mapper - the Mapper to be applied on the source input stream
        Returns:
        the loaded configuration data