@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:
- Author:
- Mark Struberg, Emily Jiang
-
Class Summary Class Description ConfigProperties.Literal Support inline instantiation of theConfigProperties
qualifier. -
Annotation Types Summary Annotation Type Description ConfigProperties Retrieve a number of related configuration properties with the specified prefix into a property class.ConfigProperty Binds the injection point with a configured value.