All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.config.SpincastConfigPluginConfigDefault.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






SpincastConfigPluginConfigDefault (org.spincast:spincast-framework 1.0.0 API)












org.spincast.plugins.config

Class SpincastConfigPluginConfigDefault

  • java.lang.Object
    • org.spincast.plugins.config.SpincastConfigPluginConfigDefault
  • All Implemented Interfaces:
    SpincastConfigPluginConfig


    public class SpincastConfigPluginConfigDefault
    extends Object
    implements SpincastConfigPluginConfig
    Default configuration for the Spincast Config plugin.

    WARNING : Beware of circular dependencies here... In general, this component should not depend on anything else, since pretty much all other components depend on it.

    One dependency you can use, is @MainArgs String[] (or @MainArgs List<String>) to get access to the application arguments.

    • Constructor Detail

      • SpincastConfigPluginConfigDefault

        public SpincastConfigPluginConfigDefault()
    • Method Detail

      • getClasspathFilePath

        public String getClasspathFilePath()
        Description copied from interface: SpincastConfigPluginConfig
        The path to a configuration file to load from the classpath.

        Defaults to "app-config.yaml". This means you can simply create that file in your /src/main/resources/ folder and it will be used.

        Specified by:
        getClasspathFilePath in interface SpincastConfigPluginConfig
      • getExternalFilePath

        public String getExternalFilePath()
        Description copied from interface: SpincastConfigPluginConfig
        The path to a configuration file to load from the file system.

        The path can be relative or absolute. Spincast will check this using : File configFile = new File(thePath); if(configFile.isAbsolute()) {...}

        If the path is relative, it is from the executable .jar.

        Defaults to "app-config.yaml".

        Specified by:
        getExternalFilePath in interface SpincastConfigPluginConfig
      • isEnvironmentVariablesStripPrefix

        public boolean isEnvironmentVariablesStripPrefix()
        Description copied from interface: SpincastConfigPluginConfig
        Should the prefix of an environment variable be stripped? For example, if #environmentVariablesPrefixes indicates that "app." is an environment variable prefix, then "app.admin.email" will result in a "admin.email" key.

        Defaults to false.

        Specified by:
        isEnvironmentVariablesStripPrefix in interface SpincastConfigPluginConfig
      • isSystemPropertiesStripPrefix

        public boolean isSystemPropertiesStripPrefix()
        Description copied from interface: SpincastConfigPluginConfig
        Should the prefix of an system property be stripped? For example, if #systemPropertiesPrefixes indicates that "app." is an system property prefix, then "app.admin.email" will result in a "admin.email" key.

        Defaults to false.

        Specified by:
        isSystemPropertiesStripPrefix in interface SpincastConfigPluginConfig

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy