Class AbstractLazyResolvingComposableConfigurer<T,C extends Configurer<T>>

java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractLazyResolvingComposableConfigurer<T,C>
Type Parameters:
T - Class type of the configurable Spring component processed by this Configurer.
C - sub-Class type of Configurer.
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.core.Ordered, Configurer<T>
Direct Known Subclasses:
LazyResolvingComposableCacheServerConfigurer, LazyResolvingComposableClientCacheConfigurer, LazyResolvingComposableContinuousQueryListenerContainerConfigurer, LazyResolvingComposableDiskStoreConfigurer, LazyResolvingComposableGatewayReceiverConfigurer, LazyResolvingComposableGatewaySenderConfigurer, LazyResolvingComposableIndexConfigurer, LazyResolvingComposableLocatorConfigurer, LazyResolvingComposablePeerCacheConfigurer, LazyResolvingComposablePoolConfigurer, LazyResolvingComposableRegionConfigurer

public abstract class AbstractLazyResolvingComposableConfigurer<T,C extends Configurer<T>> extends Object implements org.springframework.beans.factory.BeanFactoryAware, Configurer<T>
Abstract base class for Configurer interface implementations, encapsulating logic and functionality common to all lazy resolving, composable Configurer implementations.
Since:
2.2.0
See Also:
  • BeanFactory
  • BeanFactoryAware
  • OrderComparator
  • Configurer
  • Constructor Details

    • AbstractLazyResolvingComposableConfigurer

      public AbstractLazyResolvingComposableConfigurer()
  • Method Details

    • setBeanFactory

      public void setBeanFactory(@Nullable org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Sets a reference to the configured Spring BeanFactory.
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Parameters:
      beanFactory - reference to the configured Spring BeanFactory.
      Throws:
      org.springframework.beans.BeansException
      See Also:
      • BeanFactory
    • getBeanFactory

      protected Optional<org.springframework.beans.factory.BeanFactory> getBeanFactory()
      Returns a reference to the configured Spring BeanFactory.
      Returns:
      a reference to the configured Spring BeanFactory.
      See Also:
      • BeanFactory
    • getConfigurerType

      @NonNull protected abstract Class<C> getConfigurerType()
      Returns the primary Class type of the Configurer composed by this Configurer.
      Returns:
      the primary Class type of the Configurer composed by this Configurer.
      See Also:
    • resolveConfigurers

      @NonNull protected Stream<C> resolveConfigurers()
      Resolves the Configurers defined, declared and registered in the Spring application context.
      Returns:
      a Stream of Configurer objects defined, declared and registered in the Spring application context.
      See Also:
    • configure

      public void configure(String beanName, T bean)
      Applies the configuration from the composition of Configurers composed by this Configurer to the given Spring component (bean).
      Specified by:
      configure in interface Configurer<T>
      Parameters:
      beanName - String containing the name of the Spring bean.
      bean - Spring component used to construct, configure and initialize the Object.
      See Also:
    • with

      public <S extends AbstractLazyResolvingComposableConfigurer<T, C>> S with(@Nullable org.springframework.beans.factory.BeanFactory beanFactory)
      Configures the Spring BeanFactory used to resolve Configurers from the Spring context.
      Type Parameters:
      S - sub-class type of Configurer.
      Parameters:
      beanFactory - reference to the Spring BeanFactory.
      Returns:
      this AbstractLazyResolvingComposableConfigurer.
      See Also: