Spring Data for VMware GemFire
Class EmbeddedServiceConfigurationSupport
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.support.EmbeddedServiceConfigurationSupport
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.context.annotation.ImportBeanDefinitionRegistrar,org.springframework.context.EnvironmentAware
- Direct Known Subclasses:
AuthConfiguration,GemFirePropertiesConfiguration,GeodeIntegratedSecurityConfiguration,HttpServiceConfiguration,LocatorConfiguration,LoggingConfiguration,ManagerConfiguration,McastConfiguration,MemcachedServerConfiguration,OffHeapConfiguration,SslConfiguration,StatisticsConfiguration
public abstract class EmbeddedServiceConfigurationSupport
extends AbstractAnnotationConfigSupport
implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar
An abstract base class supporting the configuration of Apache Geode embedded services.
- Since:
- 1.9.0
- See Also:
-
MapPropertiesBeanFactoryAutowireCapableBeanFactoryBeanDefinitionHolderBeanPostProcessorNamedBeanHolderBeanDefinitionBuilderBeanDefinitionRegistryImportBeanDefinitionRegistrarAnnotationAttributesAnnotationMetadataAbstractCacheConfigurationAbstractAnnotationConfigSupport
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static classSpringBeanPostProcessorused to process before initialization Pivotal GemFire or Apache GeodePropertiesdefined as a bean in the Spring application context.protected static classprotected static classNested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T> -
Field Summary
FieldsFields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected StringgenerateBeanName(Class<?> typeQualifier) protected StringgenerateBeanName(String nameQualifier) protected <T extends AbstractCacheConfiguration>
TReturns a reference to an instance of theAbstractCacheConfigurationclass used to configure a GemFire (Singleton, client or peer) cache instance along with it's associated, embedded services.protected booleanhasProperties(Properties properties) protected org.springframework.beans.factory.config.BeanDefinitionHoldernewBeanDefinitionHolder(org.springframework.beans.factory.support.BeanDefinitionBuilder builder) protected voidregisterBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, Map<String, Object> annotationAttributes, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) final voidregisterBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) protected voidregisterBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.core.annotation.AnnotationAttributes annotationAttributes, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) protected voidregisterClientGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties) protected voidregisterGemFirePropertiesBeanPostProcessor(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemFireProperties) protected voidregisterGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties) protected voidregisterLocatorGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties) protected voidregisterPeerGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties) protected <T> TresolveBean(Class<T> beanType) Resolves a Spring managed bean with the givenClasstype from the SpringBeanFactory.protected StringresolveHost(String hostname) protected StringresolveHost(String hostname, String defaultHostname) protected IntegerresolvePort(Integer port) protected IntegerresolvePort(Integer port, Integer defaultPort) protected voidsetGemFireProperties(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.core.annotation.AnnotationAttributes annotationAttributes, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) protected abstract PropertiestoGemFireProperties(Map<String, Object> annotationAttributes) Methods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationType, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, getEnvironment, getEvaluationContext, getLogger, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLogger, pdxProperty, poolProperty, propertyName, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
registerBeanDefinitions
-
Field Details
-
DEFAULT_PORT
-
DEFAULT_HOST
- See Also:
-
-
Constructor Details
-
EmbeddedServiceConfigurationSupport
public EmbeddedServiceConfigurationSupport()
-
-
Method Details
-
getCacheConfiguration
Returns a reference to an instance of theAbstractCacheConfigurationclass used to configure a GemFire (Singleton, client or peer) cache instance along with it's associated, embedded services.- Type Parameters:
T-Classtype extension ofAbstractCacheConfiguration.- Returns:
- a reference to a single
AbstractCacheConfigurationinstance. - Throws:
IllegalStateException- if theAbstractCacheConfigurationreference was not configured.- See Also:
-
registerBeanDefinitions
public final void registerBeanDefinitions(@NonNull org.springframework.core.type.AnnotationMetadata importingClassMetadata, @NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry) - Specified by:
registerBeanDefinitionsin interfaceorg.springframework.context.annotation.ImportBeanDefinitionRegistrar
-
registerBeanDefinitions
protected void registerBeanDefinitions(@NonNull org.springframework.core.type.AnnotationMetadata importingClassMetadata, @NonNull org.springframework.core.annotation.AnnotationAttributes annotationAttributes, @NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry) -
registerBeanDefinitions
-
setGemFireProperties
protected void setGemFireProperties(@NonNull org.springframework.core.type.AnnotationMetadata importingClassMetadata, @NonNull org.springframework.core.annotation.AnnotationAttributes annotationAttributes, @NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry) -
toGemFireProperties
@Nullable protected abstract Properties toGemFireProperties(@NonNull Map<String, Object> annotationAttributes) -
hasProperties
-
registerGemFirePropertiesBeanPostProcessor
protected void registerGemFirePropertiesBeanPostProcessor(@NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemFireProperties) -
registerGemFirePropertiesConfigurer
protected void registerGemFirePropertiesConfigurer(@NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties) -
registerClientGemFirePropertiesConfigurer
protected void registerClientGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties) -
registerLocatorGemFirePropertiesConfigurer
protected void registerLocatorGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties) -
registerPeerGemFirePropertiesConfigurer
protected void registerPeerGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties) -
newBeanDefinitionHolder
protected org.springframework.beans.factory.config.BeanDefinitionHolder newBeanDefinitionHolder(org.springframework.beans.factory.support.BeanDefinitionBuilder builder) -
generateBeanName
-
generateBeanName
-
generateBeanName
-
resolveBean
Resolves a Spring managed bean with the givenClasstype from the SpringBeanFactory. It is assumed that the given typed bean is the only bean of thisClasstype. If more than 1 bean of the givenClasstype is found, then the SpringBeanFactorywill throw aNoUniqueBeanDefinitionException. If theBeanFactoryis an instance ofAutowireCapableBeanFactory, then the returned bean will also be configured.- Type Parameters:
T-Classtype of the registered Spring managed bean.- Parameters:
beanType- requiredClasstype of the registered Spring managed bean.- Returns:
- a Spring managed bean instance for the given, required
Classtype, or null if no bean instance of the given, requiredClasstype could be found. - Throws:
org.springframework.beans.BeansException- if the Spring manage bean of the requiredClasstype could not be resolved.- See Also:
-
resolveHost
-
resolveHost
-
resolvePort
-
resolvePort
-