Skip to content
Dmitry Kornilov edited this page Sep 22, 2022 · 1 revision

MVP

MVP scope

  1. Configuration is provided by configuration objects only (David, Roberto)
@Configuration
interface MyConfig {
	Integer getConfigProperty1();
	String getConfigProperty2();
	MyConfigObject getMyConfigObject();
}
  1. Programmatic API is used to load a configuration object. It's the core functionality. There are no dependencies to other components. (Laird)
MyConfig myConfig = ConfigLoader.load(...);
  1. Configuration objects also can be injected if Jakarta Inject or Jakarta CDI is used. It's optional. This functionality is defined in another artifact having dependency to the corresponding injection API. (Emily, Tomas)
@Inject
@ConfigObject
MyConfig myConfig;

Samples don't represent the real APIs to create and provided only for idea demonstration.

Clone this wiki locally