public class PropertiesConfigSource extends Object implements org.eclipse.microprofile.config.spi.ConfigSource
The properties of this config source are loaded by the Marty PropertiesLoader EJB.
As per SPI it is necessary to register the implementation in META-INF/services by adding an entry in a file called 'org.eclipse.microprofile.config.spi.ConfigSource'
See implementation details here: https://stackoverflow.com/questions/52117613/microprofile-config-custom-configsource-using-jpa/56498321#56498321
PropertiesLoader| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static Map<String,String> |
properties |
| Constructor and Description |
|---|
PropertiesConfigSource() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
int |
getOrdinal() |
Map<String,String> |
getProperties() |
Set<String> |
getPropertyNames() |
String |
getValue(String key) |
public static final String NAME
public int getOrdinal()
getOrdinal in interface org.eclipse.microprofile.config.spi.ConfigSourcepublic String getValue(String key)
getValue in interface org.eclipse.microprofile.config.spi.ConfigSourcepublic String getName()
getName in interface org.eclipse.microprofile.config.spi.ConfigSourcepublic Map<String,String> getProperties()
getProperties in interface org.eclipse.microprofile.config.spi.ConfigSourceCopyright © 2016–2022 Imixs Software Solutions GmbH. All rights reserved.