See: Description
Interface | Description |
---|---|
ConfigBuilder |
Builder for manually creating an instance of a
Config . |
ConfigSource |
Implement this interfaces to provide a ConfigSource.
|
ConfigSourceProvider |
Implement this interfaces to provide multiple ConfigSources.
|
Converter<T> |
Interface for converting configured values from String to any Java type.
|
Class | Description |
---|---|
ConfigProviderResolver |
This class is not intended to be used by end-users but for
portable container integration purpose only.
|
This package contains classes which are used to extend the standard functionality in a portable way.
A user can provide own ConfigSources
and
Converters
to extend the information available in the Config.
The package also contains the class ConfigProviderResolver
which is used to pick up the actual implementation.
This is used to build up a builder and manually add ConfigSources
..
ConfigProviderResolver resolver = ConfigProviderResolver.instance();
ConfigBuilder builder = resolver.getBuilder();
Config config = builder.addDefaultSources().withSources(mySource).withConverters(myConverter).build;
resolver.registerConfig(config, classloader);
resolver.releaseConfig(config);