https://github.com/forge/microprofile-config-addon
Microprofile Config addon
https://github.com/forge/microprofile-config-addon
jboss-forge microprofile-config
Last synced: 6 months ago
JSON representation
Microprofile Config addon
- Host: GitHub
- URL: https://github.com/forge/microprofile-config-addon
- Owner: forge
- Created: 2020-02-26T14:20:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T14:49:30.000Z (about 6 years ago)
- Last Synced: 2025-07-17T17:49:37.064Z (9 months ago)
- Topics: jboss-forge, microprofile-config
- Language: Java
- Homepage: https://projects.eclipse.org/projects/technology.microprofile/releases/microprofile-config-1.4
- Size: 21.5 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
Awesome Lists containing this project
README
== microprofile-config
:idprefix: id_
This addon provides *standalone* functionality.
=== Depends on
[options="header"]
|===
|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)
[source,xml]
----
org.jboss.forge.addon
microprofile-config
forge-addon
${version}
----
== Features
Injection of ConfigProperties::
This addon reads the `~/.forge/config.properties` files and makes it available for injection using `@ConfigProperty`
+
[source,java]
----
@Inject
@ConfigProperty
private String name;
----