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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanconfigure(Configurable config) Input Configurable object shall be provided in order to be filled with all found propertiesstatic booleanconfigure(BiConsumer<String, Object> config, List<ExternalConfigurationProvider> externalConfigurationProviders) Key Value pairs gathered byExternalConfigurationProviders 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 byExternalConfigurationProviders are applied to a givenconfig. Theconfigcan 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.
-