Class AbstractConfig
java.lang.Object
org.tasktide.parser.configuration.AbstractConfig
- All Implemented Interfaces:
TaskTideConfig
- Direct Known Subclasses:
EngineConfig, GlobalConfig, JNoSQLConfigurer, JpaConfigurer, ManagerConfig, MutexConfigurer, WebApiConfig, WorkloadPolicyConfigurer
Abstract class deals with the broader parts of config,
ArgumentMap, path etc-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToTree(ArgumentTree argTree) Add the configuredArgumentMapto the suppliedArgumentTreeunder the instances path attributevoidextendPath(ArgumentTree argTree, String path, ArgumentMap map) Extend the provided path on theArgumentTreeif present withArgumentMap.ProvideArgumentBuilderReturn the instances configuredArgumentMaporg.eclipse.microprofile.config.ConfigProvideConfig<T> TgetConfigValue(String configKey, Class<T> type, T defaultValue) Fetch config, or default valuegetPath()Return path to the engine argumentsbooleanparseCommandLineArguments(String[] argsIn, ArgumentTree argTree) Parse command-line argument values intoArgumentTreeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TaskTideConfig
help, initConfig
-
Constructor Details
-
AbstractConfig
-
-
Method Details
-
addToTree
Add the configuredArgumentMapto the suppliedArgumentTreeunder the instances path attribute- Specified by:
addToTreein interfaceTaskTideConfig- Parameters:
argTree-
-
extendPath
Extend the provided path on theArgumentTreeif present withArgumentMap. Otherwise add path- Specified by:
extendPathin interfaceTaskTideConfig- Parameters:
argTree-path-map-
-
getPath
Return path to the engine arguments- Specified by:
getPathin interfaceTaskTideConfig- Returns:
- String
-
getArgumentMap
Return the instances configuredArgumentMap- Specified by:
getArgumentMapin interfaceTaskTideConfig- Returns:
ArgumentMap
-
getArgumentBuilder
ProvideArgumentBuilder- Specified by:
getArgumentBuilderin interfaceTaskTideConfig- Returns:
ArgumentBuilder
-
getConfig
public org.eclipse.microprofile.config.Config getConfig()ProvideConfig- Specified by:
getConfigin interfaceTaskTideConfig- Returns:
Config
-
parseCommandLineArguments
Parse command-line argument values intoArgumentTree- Specified by:
parseCommandLineArgumentsin interfaceTaskTideConfig- Parameters:
argsIn-argTree-- Returns:
- boolean
-
getConfigValue
-