microprofile-config
This addon provides standalone functionality.
Depends on
| Addon | Exported | Optional |
|---|---|---|
org.jboss.forge.furnace.container:cdi |
yes |
no |
Setup
This Addon requires the following installation steps.
Add configuration to pom.xml
To use this addon, you must add it as a dependency in the pom.xml of your forge-addon classified artifact: (Make sure the dependency is put all the way to the left, and uses 3 spaces for indentation of GAV)
<dependency>
<groupId>org.jboss.forge.addon</groupId>
<artifactId>microprofile-config</artifactId>
<classifier>forge-addon</classifier>
<version>${version}</version>
</dependency>
Features
- Injection of ConfigProperties
-
This addon reads the
~/.forge/config.propertiesfiles and makes it available for injection using@ConfigProperty@Inject @ConfigProperty private String name;