Class AppConfigurationConcernProvider

java.lang.Object
io.confound.app.provider.AppConfigurationConcernProvider
All Implemented Interfaces:
io.csar.ConcernProvider

public class AppConfigurationConcernProvider extends Object implements io.csar.ConcernProvider
Automatically creates a configuration concern that loads a configuration file for an application.

The configuration manager will discover the configuration file in an application data directory indicated by a configuration base filename "config" indicated as a system property or as an environment variable. The indicated application data directory may be absolute, or relative to the user home directory.

If no application directory can be determined, a configuration exception is thrown.

Author:
Garret Wilson
See Also:
  • AppConfigurationConcernBuilder
  • Constructor Details

    • AppConfigurationConcernProvider

      public AppConfigurationConcernProvider()
  • Method Details

    • concerns

      public Stream<io.csar.Concern> concerns()
      Specified by:
      concerns in interface io.csar.ConcernProvider