Package org.eclipse.microprofile.config.inject
@Version("2.0")
package org.eclipse.microprofile.config.inject
CDI Support for MicroProfile Config
MicroProfile Config also supports injection via a JSR-330 DI container:
@Inject @ConfigProperty(name="myproject.some.endpoint.url"); private String restUrl;
The following types can be injected:
-
ClassDescriptionRetrieve a number of related configuration properties with the specified prefix into a property class.Support inline instantiation of the
ConfigProperties
qualifier.Binds the injection point with a configured value.