public class ExternalPropertiesConfigurationFactory extends Object
Constructor and Description |
---|
ExternalPropertiesConfigurationFactory() |
Modifier and Type | Method and Description |
---|---|
static boolean |
configure(BiConsumer<String,Object> config,
List<ExternalConfigurationProvider> externalConfigurationProviders)
Key Value pairs gathered by
ExternalConfigurationProvider s are applied to a given config . |
static boolean |
configure(Configurable config)
Input Configurable object shall be provided in order to be filled with all found properties
|
public ExternalPropertiesConfigurationFactory()
public static boolean configure(Configurable config)
config
- Input Configurable initialised object to be filled with propertiespublic static boolean configure(BiConsumer<String,Object> config, List<ExternalConfigurationProvider> externalConfigurationProviders)
ExternalConfigurationProvider
s are applied to a given config
. The
config
can be for instance (k,v) -> configurable.property(k,v)
of a
Configurable structure
, or (k,v) -> properties.put(k,v)
of a
Properties structure
.config
- externalConfigurationProviders
- the providers to grab the properties from it.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.