MicroProfile Config

MicroProfile Config defines a set of supported default ConfigSources for environment variables, system properties, and META-INF/microprofile-config.properties files on the classpath, with specific ordinals.

Magnolia also supports configuration properties files (and YAML files too) on webapp level, under WEB-INF/config/default/microprofile-config.properties.

Magnolia can scan more locations for configuration properties files and uses the SmallRye Config library for implementation. Therefore, it supports passing such locations through the smallrye.config.locations config property.

This enables developers to build containerized images of Magnolia once, and deploy anywhere, using — for example — Docker bind mounts, or Kubernetes ConfigMaps.

Property injection

While Magnolia supports injecting @ConfigProperty fields into managed components, it’s not fully interoperable with the CDI specification.

Magnolia uses Google Guice for dependency injection.
Related topics
Feedback

DX Core

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the DX Core docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules
6.3 beta
X

Magnolia 6.3 beta

Magnolia 6.3 is in beta. We are updating docs based on development and feedback. Consider the 6.3 docs currently in a state of progress and not final.

We are working on some 6.3-beta known issues during this phase.