Class ExternalPropertiesConfigurationFactory
java.lang.Object
org.glassfish.jersey.internal.config.ExternalPropertiesConfigurationFactory
Factory for external properties providers
Offers methods to work with properties loaded from providers or
just configure Jersey's Configurables with loaded properties from providers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
configure
(Configurable config) Input Configurable object shall be provided in order to be filled with all found propertiesstatic boolean
configure
(BiConsumer<String, Object> config, List<ExternalConfigurationProvider> externalConfigurationProviders) Key Value pairs gathered byExternalConfigurationProvider
s are applied to a givenconfig
.
-
Constructor Details
-
ExternalPropertiesConfigurationFactory
public ExternalPropertiesConfigurationFactory()
-
-
Method Details
-
configure
Input Configurable object shall be provided in order to be filled with all found properties- Parameters:
config
- Input Configurable initialised object to be filled with properties- Returns:
- true if configured false otherwise
-
configure
public static boolean configure(BiConsumer<String, Object> config, List<ExternalConfigurationProvider> externalConfigurationProviders) Key Value pairs gathered byExternalConfigurationProvider
s are applied to a givenconfig
. Theconfig
can be for instance(k,v) -> configurable.property(k,v)
of aConfigurable structure
, or(k,v) -> properties.put(k,v)
of aProperties structure
.- Parameters:
config
-externalConfigurationProviders
- the providers to grab the properties from it.- Returns:
- true if configured false otherwise.
-