Package org.imixs.workflow.engine
Class ImixsConfigSource
- java.lang.Object
-
- org.imixs.workflow.engine.ImixsConfigSource
-
- All Implemented Interfaces:
org.eclipse.microprofile.config.spi.ConfigSource
public class ImixsConfigSource extends Object implements org.eclipse.microprofile.config.spi.ConfigSource
The ImixsConfigSource is a custom config source based on Microprofile Config API.The config source reads the Imixs-Workflow property file named 'imxis.properties'.
With this custom config source the imixs.properties file can be reused without the need to migrate all properties into the file META-INF/microprofile-config.properties. It is recommended to store imixs specific properties into the file imixs.properties
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'
- Author:
- rsoika
-
-
Constructor Summary
Constructors Constructor Description ImixsConfigSource()
-
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
-
getPropertyNames
public Set<String> getPropertyNames()
- Specified by:
getPropertyNamesin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
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
-
-