Class ExternalPropertiesConfigurationFactory
- java.lang.Object
-
- org.glassfish.jersey.internal.config.ExternalPropertiesConfigurationFactory
-
public class ExternalPropertiesConfigurationFactory extends Object
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 Constructor Description ExternalPropertiesConfigurationFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
configure
public static boolean configure(Configurable config)
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.
-
-