This class is not intended to be used by end-users.
The implementation of this class should register itself via the java. mechanism.
| Modifier and Type | Field and Description |
|---|---|
| private static volatile ConfigProviderResolver |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract ConfigBuilder | Returns: a new configuration builder instanceCreate a |
| public abstract Config | Returns: the configuration instanceGet the configuration instance for the current application in the manner described by
|
| public abstract Config | Returns: the configuration instancethe class loader identifying the application loader)Get the configuration instance for the current application in the manner described by
|
| public static ConfigProviderResolver | |
| private static ConfigProviderResolver | |
| public abstract void | registerConfig(Config
the configuration to register config, ClassLoader the class loader identifying the application classLoader)Register the given |
| public abstract void | releaseConfig(Config
the config to be released config)A |
| public static void | setInstance(ConfigProviderResolver
the instance to set, or resolver)null to unset the instanceSet the instance. |
| instance | back to summary |
|---|---|
| private static volatile ConfigProviderResolver instance | |
| ConfigProviderResolver | back to summary |
|---|---|
| protected ConfigProviderResolver() Construct a new instance. | |
| getBuilder | back to summary |
|---|---|
| public abstract ConfigBuilder getBuilder() Create a The returned configuration builder must initially contain no registered configuration sources. The returned configuration builder must initially contain only built in converters.
| |
| getConfig | back to summary |
|---|---|
| public abstract Config getConfig() Get the configuration instance for the current application in the manner described by
| |
| getConfig | back to summary |
|---|---|
| public abstract Config getConfig(ClassLoader loader) Get the configuration instance for the current application in the manner described by
| |
| instance | back to summary |
|---|---|
| public static ConfigProviderResolver instance() Find and return the provider resolver instance. If the provider resolver instance was already found, or was
manually specified, that instance is returned. Otherwise,
| |
| loadSpi | back to summary |
|---|---|
| private static ConfigProviderResolver loadSpi(ClassLoader cl) | |
| registerConfig | back to summary |
|---|---|
| public abstract void registerConfig(Config config, ClassLoader classLoader) Register the given
| |
| releaseConfig | back to summary |
|---|---|
| public abstract void releaseConfig(Config config) A
| |
| setInstance | back to summary |
|---|---|
| public static void setInstance(ConfigProviderResolver resolver) Set the instance. It is used by OSGi environments that do not support the service loader pattern. Note that calling this method after a different provider instance was already retrieved can lead to inconsistent results. Mixing usage of this method with the service loader pattern is for this reason strongly discouraged.
| |