Class ConfigObserver

  • All Implemented Interfaces:
    FileListener

    public class ConfigObserver
    extends Object
    implements FileListener
    Used to monitor a set of configuration files and notify ConfigListeners on initialization and change. Given a directory and an application name, appropriate resources and files are monitored with a ConfigDirectoryLoader. If the system property `profile` or `profiles` is set, additionally scans for all files on the format <applicationName>-<profile>.properties