S - public abstract static class StdConfig.StdConfigAbstract<S extends StdConfig.StdConfigAbstract<S>> extends BaseConfig<S>
_cmdLineArgs, _fixedVals, _missingClasspathPropFileAProblem, _missingFilesystemPropFileAProblem, classpathPropFilePathProp, classpathPropFilePathStr, DEFAULT_LOADER_LIST, envProperties, filesystemPropFilePathProp, insertAfter, insertBefore, naming, standardLoaders, systemProperties| Constructor and Description |
|---|
StdConfigAbstract() |
| Modifier and Type | Method and Description |
|---|---|
<T> S |
addFixedValue(Property<T> property,
T value)
Sets a fixed, non-configurable value for a Property.
|
S |
classpathPropertiesNotRequired()
If set, the properties file loaded by StdPropFileOnClasspathLoader is
optional and will not throw an error if it is not found.
|
S |
classpathPropertiesRequired()
If set, the properties file loaded by StdPropFileOnClasspathLoader must
be found and a RuntimeException will be thrown if it is not found.
|
S |
filesystemPropFileNotRequired()
If set, the properties file loaded by StdPropFileOnFilesystemLoader is
optional and will not throw an error if it is not found.
|
S |
filesystemPropFileRequired()
If set, the properties file loaded by StdPropFileOnFilesystemLoader must
be found and a RuntimeException will be thrown if it is not found.
|
S |
insertLoaderAfter(Class<? extends StandardLoader> insertAfterThisLoader,
Loader loaderToInsert) |
S |
insertLoaderBefore(Class<? extends StandardLoader> insertBeforeThisLoader,
Loader loaderToInsert) |
S |
removeFixedValue(Property<?> property)
Removes a PropertyValue from the list of fixed values.
|
S |
setClasspathPropFilePath(String classpathPropFilePathString)
Sets the classpath path to a properties file for the
StdPropFileOnClasspathLoader to load.
|
S |
setClasspathPropFilePath(StrProp classpathPropFilePathProperty)
Sets the classpath path via a StrProp (a Property of String type) to a
properties file for the StdPropFileOnClasspathLoader to load.
|
S |
setCmdLineArgs(String[] commandLineArgs)
Sets the command line arguments, removing any previously set commandline args.
|
S |
setEnvironmentProperties(Map<String,String> envProperties)
Allows the System environment to be overridden.
|
S |
setFilesystemPropFilePath(StrProp filesystemPropFilePath)
Sets the filesystem path via a StrProp (a Property of String type) to a
properties file for the StdPropFileOnFilesystemLoader to load.
|
S |
setStandardLoaders(Class<? extends StandardLoader>... newStandardLoaders) |
S |
setStandardLoaders(List<Class<? extends StandardLoader>> newStandardLoaders) |
S |
setSystemProperties(Properties properties)
Allows system properties to be overridden.
|
build, buildLoaders, buildStdEnvVarLoader, buildStdFixedValueLoader, buildStdJndiLoader, buildStdMainStringArgsLoader, buildStdPropFileOnClasspathLoader, buildStdPropFileOnFilesystemLoader, buildStdSysPropLoader, getDefaultLoaderList, getNamingStrategy, getRegisteredGroupspublic <T> S addFixedValue(Property<T> property, T value)
AndHowConfigurationT - The type of Property and valueproperty - The property to set a value forvalue - The value to set.public S removeFixedValue(Property<?> property)
AndHowConfigurationproperty - A non-null property.public S setCmdLineArgs(String[] commandLineArgs)
AndHowConfigurationpublic S setClasspathPropFilePath(String classpathPropFilePathString)
classpathPropFilePathString - public S setClasspathPropFilePath(StrProp classpathPropFilePathProperty)
mustStartWith("/").classpathPropFilePathProperty - public S classpathPropertiesRequired()
public S classpathPropertiesNotRequired()
public S setFilesystemPropFilePath(StrProp filesystemPropFilePath)
filesystemPropFilePath - public S filesystemPropFileRequired()
public S filesystemPropFileNotRequired()
public S setSystemProperties(Properties properties)
properties - public S setEnvironmentProperties(Map<String,String> envProperties)
envProperties - public S setStandardLoaders(List<Class<? extends StandardLoader>> newStandardLoaders)
public S setStandardLoaders(Class<? extends StandardLoader>... newStandardLoaders)
public S insertLoaderBefore(Class<? extends StandardLoader> insertBeforeThisLoader, Loader loaderToInsert)
public S insertLoaderAfter(Class<? extends StandardLoader> insertAfterThisLoader, Loader loaderToInsert)
Copyright © 2017. All rights reserved.