Package org.imixs.workflow.office.config
Class PropertiesConfigSource
- java.lang.Object
-
- org.imixs.workflow.office.config.PropertiesConfigSource
-
- All Implemented Interfaces:
org.eclipse.microprofile.config.spi.ConfigSource
public class PropertiesConfigSource extends Object implements org.eclipse.microprofile.config.spi.ConfigSource
The Marty PropertiesConfigSource is a custom config source based on Microprofile Config API.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
- Author:
- rsoika
- See Also:
PropertiesLoader
-
-
Constructor Summary
Constructors Constructor Description PropertiesConfigSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()intgetOrdinal()Map<String,String>getProperties()Set<String>getPropertyNames()StringgetValue(String key)
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOrdinal
public int getOrdinal()
- Specified by:
getOrdinalin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getValue
public String getValue(String key)
- Specified by:
getValuein interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getProperties
public Map<String,String> getProperties()
- Specified by:
getPropertiesin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
-