java.lang.Object
dev.orne.config.spring.ConfigurableComponentsConfigurer
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.annotation.ImportAware
@Configuration
@Import(ConfigProviderConfigurer.class)
@API(status=INTERNAL,
since="1.0")
public class ConfigurableComponentsConfigurer
extends Object
implements org.springframework.context.annotation.ImportAware
Spring configuration for
ConfigurableComponentsPostProcessor
based on EnableConfigurableComponents annotation.- Since:
- 1.0
- Version:
- 1.0, 2025-08
- Author:
- (w) Iker Hernaez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.core.annotation.AnnotationAttributesThe annotation data for the configuration.static final StringThe name of theConfigurerbean.protected ConfigurerThe exposed configurable componentsConfigurer, if any.static final StringThe name of theConfigurableComponentsPostProcessorbean.protected ConfigProviderConfigurerTheConfigProvidersupplier for current Spring context. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExposes the configurable components configurer.@NotNull ConfigurableComponentsPostProcessorExposes the Spring configurable components post-processor.voidsetImportMetadata(@NotNull org.springframework.core.type.AnnotationMetadata importMetadata) voidSets theConfigProvidersupplier for current Spring context.
-
Field Details
-
CONFIGURER
The name of theConfigurerbean.- See Also:
-
POST_PROCESSOR
The name of theConfigurableComponentsPostProcessorbean.- See Also:
-
annotationData
protected org.springframework.core.annotation.AnnotationAttributes annotationDataThe annotation data for the configuration. -
springConfigProvider
TheConfigProvidersupplier for current Spring context. -
exposedConfigurer
The exposed configurable componentsConfigurer, if any.
-
-
Constructor Details
-
ConfigurableComponentsConfigurer
public ConfigurableComponentsConfigurer()Creates a new instance.
-
-
Method Details
-
setImportMetadata
public void setImportMetadata(@NotNull @NotNull org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadatain interfaceorg.springframework.context.annotation.ImportAware
-
setSpringConfigProvider
Sets theConfigProvidersupplier for current Spring context.- Parameters:
provider- TheConfigProvidersupplier for current Spring context.
-
configurableComponentsConfigurer
@Bean(name="orneConfigConfigurableComponentsConfigurer") public Configurer configurableComponentsConfigurer()Exposes the configurable components configurer.- Returns:
- The configurable components configurer.
-
configurableComponentsPostProcessor
@Bean(name="orneConfigConfigurableComponentsPostProcessor") @NotNull public @NotNull ConfigurableComponentsPostProcessor configurableComponentsPostProcessor()Exposes the Spring configurable components post-processor.- Parameters:
configurer- The application provided or exposed configurer, if any.- Returns:
- The configurable components post-processor.
-