Class AbstractLazyResolvingComposableConfigurer<T,C extends Configurer<T>>
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractLazyResolvingComposableConfigurer<T,C>
- Type Parameters:
T-Classtype of the configurable Spring component processed by thisConfigurer.C-sub-Classtype ofConfigurer.
- All Implemented Interfaces:
Aware,BeanFactoryAware,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 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
- Author:
- John Blum
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the configuration from the composition ofConfigurerscomposed by thisConfigurerto the given Spring component (bean).protected Optional<BeanFactory>Returns a reference to the configured SpringBeanFactory.Resolves theConfigurersdefined, declared and registered in the Spring application context.voidsetBeanFactory(BeanFactory beanFactory) Sets a reference to the configured SpringBeanFactory.<S extends AbstractLazyResolvingComposableConfigurer<T,C>>
Swith(BeanFactory beanFactory) Configures the SpringBeanFactoryused to resolveConfigurersfrom the Spring context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.gemfire.config.annotation.support.Configurer
getOrder
-
Constructor Details
-
AbstractLazyResolvingComposableConfigurer
public AbstractLazyResolvingComposableConfigurer()
-
-
Method Details
-
setBeanFactory
Sets a reference to the configured SpringBeanFactory.- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Parameters:
beanFactory- reference to the configured SpringBeanFactory.- Throws:
BeansException- See Also:
-
getBeanFactory
Returns a reference to the configured SpringBeanFactory.- Returns:
- a reference to the configured Spring
BeanFactory. - See Also:
-
getConfigurerType
- Returns:
- the primary
Classtype of theConfigurercomposed by thisConfigurer. - See Also:
-
resolveConfigurers
Resolves theConfigurersdefined, declared and registered in the Spring application context.- Returns:
- a
StreamofConfigurerobjects defined, declared and registered in the Spring application context. - See Also:
-
configure
Applies the configuration from the composition ofConfigurerscomposed by thisConfigurerto the given Spring component (bean).- Specified by:
configurein interfaceConfigurer<T>- Parameters:
beanName-Stringcontaining the name of the Spring bean.bean- Spring component used to construct, configure and initialize theObject.- See Also:
-
with
public <S extends AbstractLazyResolvingComposableConfigurer<T,C>> S with(@Nullable BeanFactory beanFactory) Configures the SpringBeanFactoryused to resolveConfigurersfrom the Spring context.- Type Parameters:
S- sub-class type ofConfigurer.- Parameters:
beanFactory- reference to the SpringBeanFactory.- Returns:
- this
AbstractLazyResolvingComposableConfigurer. - See Also:
-