public class ApplicationConfigHelper extends Object
ApplicationConfig.| Modifier | Constructor and Description |
|---|---|
protected |
ApplicationConfigHelper() |
| Modifier and Type | Method and Description |
|---|---|
static ApplicationConfigProvider |
getProvider(ClassLoader classLoader,
String name) |
static Set<ApplicationConfigProvider> |
getProviders(ClassLoader classLoader,
Set<String> includes,
Set<String> excludes,
boolean verbose)
Obtain all providers on class-path.
|
static void |
loadAllDefaultOption(ApplicationConfig config,
ClassLoader classLoader,
Set<String> includes,
Set<String> excludes,
boolean verbose)
Load default options from all config provider found in classpath.
|
public static Set<ApplicationConfigProvider> getProviders(ClassLoader classLoader, Set<String> includes, Set<String> excludes, boolean verbose)
classLoader - optional classLoader used to seek for providersincludes - optional includes providers to use (if none then accept all providers)excludes - optional excludes providers (if none the no reject)verbose - verbose flagpublic static ApplicationConfigProvider getProvider(ClassLoader classLoader, String name)
public static void loadAllDefaultOption(ApplicationConfig config, ClassLoader classLoader, Set<String> includes, Set<String> excludes, boolean verbose)
config - config where to add default options.classLoader - optional classLoaderincludes - config to include (if none given all is include)excludes - config to exclude (if none given, no exclude)verbose - verbose flagCopyright © 2004-2013 CodeLutin. All Rights Reserved.