Class ConfigurableComponentsConfigurer

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 Details

    • CONFIGURER

      public static final String CONFIGURER
      The name of the Configurer bean.
      See Also:
    • POST_PROCESSOR

      public static final String POST_PROCESSOR
      The name of the ConfigurableComponentsPostProcessor bean.
      See Also:
    • annotationData

      protected org.springframework.core.annotation.AnnotationAttributes annotationData
      The annotation data for the configuration.
    • springConfigProvider

      protected ConfigProviderConfigurer springConfigProvider
      The ConfigProvider supplier for current Spring context.
    • exposedConfigurer

      protected Configurer exposedConfigurer
      The exposed configurable components Configurer, 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:
      setImportMetadata in interface org.springframework.context.annotation.ImportAware
    • setSpringConfigProvider

      @Autowired public void setSpringConfigProvider(ConfigProviderConfigurer provider)
      Sets the ConfigProvider supplier for current Spring context.
      Parameters:
      provider - The ConfigProvider supplier 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.