Module dev.orne.config
Package dev.orne.config.spring
Annotation Interface EnableConfigurableComponents
@Documented
@Retention(RUNTIME)
@Target(TYPE)
@Import(ConfigurableComponentsConfigurer.class)
@API(status=STABLE,
since="1.0")
public @interface EnableConfigurableComponents
Annotation for automatic configuration of
Configurable beans.
Example:
class MyComponent implements Configurable {
...
}
@Configuration
@EnableConfigurableComponents
class AppConfig {
...
@Bean
public MyComponent myConfigurableComponent() {
...
}
...
}
See ConfigProviderCustomizer for details on the
ConfigProvider configuration and how to customize it.
By default, the Configurer used to configure the
Configurable components is not exposed as a bean. To
expose it, set the exposeConfigurer attribute to
true.
- Since:
- 1.0
- Version:
- 1.0, 2025-08
- Author:
- (w) Iker Hernaez
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether to expose theConfigurerbean used to configure the components.
-
Element Details
-
exposeConfigurer
boolean exposeConfigurerWhether to expose theConfigurerbean used to configure the components.If
true, a bean of typeConfigurerwill be registered in the application context with the name "orneConfigConfigurableComponentsConfigurer".Default is
false.- Returns:
- Whether to expose the
Configurerbean.
- Default:
- false
-