Class EmbeddedServiceConfigurationSupport
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.support.EmbeddedServiceConfigurationSupport
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,ImportBeanDefinitionRegistrar,EnvironmentAware
- Direct Known Subclasses:
AuthConfiguration,GemFirePropertiesConfiguration,GeodeIntegratedSecurityConfiguration,HttpServiceConfiguration,LocatorConfiguration,LoggingConfiguration,ManagerConfiguration,McastConfiguration,MemcachedServerConfiguration,OffHeapConfiguration,SslConfiguration,StatisticsConfiguration
public abstract class EmbeddedServiceConfigurationSupport
extends AbstractAnnotationConfigSupport
implements ImportBeanDefinitionRegistrar
An abstract base class supporting the configuration of Apache Geode embedded services.
- Since:
- 1.9.0
- Author:
- John Blum
- See Also:
-
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 BeanDefinitionHolderprotected voidregisterBeanDefinitions(AnnotationMetadata importingClassMetadata, Map<String, Object> annotationAttributes, BeanDefinitionRegistry registry) final voidregisterBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) protected voidregisterBeanDefinitions(AnnotationMetadata importingClassMetadata, AnnotationAttributes annotationAttributes, BeanDefinitionRegistry registry) protected voidregisterClientGemFirePropertiesConfigurer(BeanDefinitionRegistry registry, Properties gemfireProperties) protected voidregisterGemFirePropertiesBeanPostProcessor(BeanDefinitionRegistry registry, Properties gemFireProperties) protected voidregisterGemFirePropertiesConfigurer(BeanDefinitionRegistry registry, Properties gemfireProperties) protected voidregisterLocatorGemFirePropertiesConfigurer(BeanDefinitionRegistry registry, Properties gemfireProperties) protected voidregisterPeerGemFirePropertiesConfigurer(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(AnnotationMetadata importingClassMetadata, AnnotationAttributes annotationAttributes, 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 AnnotationMetadata importingClassMetadata, @NonNull BeanDefinitionRegistry registry) - Specified by:
registerBeanDefinitionsin interfaceImportBeanDefinitionRegistrar
-
registerBeanDefinitions
protected void registerBeanDefinitions(@NonNull AnnotationMetadata importingClassMetadata, @NonNull AnnotationAttributes annotationAttributes, @NonNull BeanDefinitionRegistry registry) -
registerBeanDefinitions
protected void registerBeanDefinitions(@NonNull AnnotationMetadata importingClassMetadata, @NonNull Map<String, Object> annotationAttributes, @NonNull BeanDefinitionRegistry registry) -
setGemFireProperties
protected void setGemFireProperties(@NonNull AnnotationMetadata importingClassMetadata, @NonNull AnnotationAttributes annotationAttributes, @NonNull BeanDefinitionRegistry registry) -
toGemFireProperties
-
hasProperties
-
registerGemFirePropertiesBeanPostProcessor
protected void registerGemFirePropertiesBeanPostProcessor(@NonNull BeanDefinitionRegistry registry, Properties gemFireProperties) -
registerGemFirePropertiesConfigurer
protected void registerGemFirePropertiesConfigurer(@NonNull BeanDefinitionRegistry registry, Properties gemfireProperties) -
registerClientGemFirePropertiesConfigurer
protected void registerClientGemFirePropertiesConfigurer(BeanDefinitionRegistry registry, Properties gemfireProperties) -
registerLocatorGemFirePropertiesConfigurer
protected void registerLocatorGemFirePropertiesConfigurer(BeanDefinitionRegistry registry, Properties gemfireProperties) -
registerPeerGemFirePropertiesConfigurer
protected void registerPeerGemFirePropertiesConfigurer(BeanDefinitionRegistry registry, Properties gemfireProperties) -
newBeanDefinitionHolder
-
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:
BeansException- if the Spring manage bean of the requiredClasstype could not be resolved.- See Also:
-
resolveHost
-
resolveHost
-
resolvePort
-
resolvePort
-