An open API service indexing awesome lists of open source software.

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

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;
----