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 thisConfigurer
.C
-sub-Class
type ofConfigurer
.
- 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
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the configuration from the composition ofConfigurers
composed by thisConfigurer
to the given Spring component (bean).protected Optional<org.springframework.beans.factory.BeanFactory>
Returns a reference to the configured SpringBeanFactory
.Resolves theConfigurers
defined, declared and registered in the Spring application context.void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) Sets a reference to the configured SpringBeanFactory
.<S extends AbstractLazyResolvingComposableConfigurer<T,
C>>
Swith
(org.springframework.beans.factory.BeanFactory beanFactory) Configures the SpringBeanFactory
used to resolveConfigurers
from the Spring context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.gemfire.config.annotation.support.Configurer
getOrder
-
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 SpringBeanFactory
.- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Parameters:
beanFactory
- reference to the configured SpringBeanFactory
.- Throws:
org.springframework.beans.BeansException
- See Also:
-
BeanFactory
-
getBeanFactory
Returns a reference to the configured SpringBeanFactory
.- Returns:
- a reference to the configured Spring
BeanFactory
. - See Also:
-
BeanFactory
-
getConfigurerType
- Returns:
- the primary
Class
type of theConfigurer
composed by thisConfigurer
. - See Also:
-
resolveConfigurers
Resolves theConfigurers
defined, declared and registered in the Spring application context.- Returns:
- a
Stream
ofConfigurer
objects defined, declared and registered in the Spring application context. - See Also:
-
configure
Applies the configuration from the composition ofConfigurers
composed by thisConfigurer
to the given Spring component (bean).- Specified by:
configure
in interfaceConfigurer<T>
- Parameters:
beanName
-String
containing 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 org.springframework.beans.factory.BeanFactory beanFactory) Configures the SpringBeanFactory
used to resolveConfigurers
from the Spring context.- Type Parameters:
S
- sub-class type ofConfigurer
.- Parameters:
beanFactory
- reference to the SpringBeanFactory
.- Returns:
- this
AbstractLazyResolvingComposableConfigurer
. - See Also:
-
BeanFactory
setBeanFactory(BeanFactory)
-