Spring Data for VMware GemFire
Class ClusterConfigurationConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.ClusterConfigurationConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.context.annotation.ImportAware,org.springframework.context.EnvironmentAware
@Configuration
public class ClusterConfigurationConfiguration
extends AbstractAnnotationConfigSupport
implements org.springframework.context.annotation.ImportAware
Spring
@Configuration class defining Spring beans that will record the creation of
Apache Geode / Pivotal GemFire Regions defined in Spring config (i.e. XML, Java or by Annotations)
as Spring beans in the Spring container.- Since:
- 2.0.0
- See Also:
-
AnnotationGemFireCacheRegionClientCacheIndexListableBeanFactoryBeanPostProcessorBeanConfigurationImportAwareEventListenerAnnotationAttributesEnvironmentAnnotationMetadataGemfireAdminOperationsAbstractAnnotationConfigSupportClientHttpRequestInterceptor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final booleanprotected static final booleanprotected static final Stringprotected static final intprotected static final booleanprotected static final booleanprotected static final Stringprotected static final Stringprotected static final StringFields 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 TypeMethodDescriptiongemfireClusterSchemaObjectInitializer(org.springframework.core.env.Environment environment, org.apache.geode.cache.GemFireCache gemfireCache) protected Class<? extends Annotation>Returns the cache applicationAnnotationtype pertaining to this configuration.protected Optional<org.apache.geode.cache.RegionShortcut>protected List<org.springframework.http.client.ClientHttpRequestInterceptor>resolveClientHttpRequestInterceptors(boolean enableInterceptors) protected GemfireAdminOperationsresolveGemfireAdminOperations(org.springframework.core.env.Environment environment, org.apache.geode.cache.client.ClientCache clientCache) Attempts to resolve the theGemfireAdminOperationsobject from the SpringApplicationContextwhich is used to create Apache Geode or Pivotal GemFire schema objects.protected booleanprotected booleanprotected Stringprotected intprotected booleanprotected booleanprotected List<RestTemplateConfigurer>protected org.apache.geode.cache.RegionShortcutvoidsetImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) protected voidsetManagementHttpEnableInterceptors(Boolean enableInterceptors) protected voidsetManagementHttpFollowRedirects(Boolean followRedirects) protected voidsetManagementHttpHost(String hostname) protected voidsetManagementHttpPort(Integer managementHttpPort) protected voidsetManagementRequireHttps(Boolean requireHttps) protected voidsetManagementUseHttp(Boolean useHttp) protected voidsetServerRegionShortcut(org.apache.geode.cache.RegionShortcut regionShortcut) 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, 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, statsProperty
-
Field Details
-
DEFAULT_HTTP_FOLLOW_REDIRECTS
protected static final boolean DEFAULT_HTTP_FOLLOW_REDIRECTS- See Also:
-
DEFAULT_HTTP_REQUEST_INTERCEPTORS_ENABLED
protected static final boolean DEFAULT_HTTP_REQUEST_INTERCEPTORS_ENABLED- See Also:
-
DEFAULT_MANAGEMENT_USE_HTTP
protected static final boolean DEFAULT_MANAGEMENT_USE_HTTP- See Also:
-
DEFAULT_MANAGEMENT_REQUIRE_HTTPS
protected static final boolean DEFAULT_MANAGEMENT_REQUIRE_HTTPS- See Also:
-
DEFAULT_MANAGEMENT_HTTP_PORT
protected static final int DEFAULT_MANAGEMENT_HTTP_PORT- See Also:
-
DEFAULT_MANAGEMENT_HTTP_HOST
- See Also:
-
HTTP_FOLLOW_REDIRECTS_PROPERTY
- See Also:
-
HTTP_SCHEME
- See Also:
-
HTTPS_SCHEME
- See Also:
-
-
Constructor Details
-
ClusterConfigurationConfiguration
public ClusterConfigurationConfiguration()
-
-
Method Details
-
getAnnotationType
Description copied from class:AbstractAnnotationConfigSupportReturns the cache applicationAnnotationtype pertaining to this configuration.- Specified by:
getAnnotationTypein classAbstractAnnotationConfigSupport- Returns:
- the cache application
Annotationtype used by this application.
-
setManagementHttpHost
-
getManagementHttpHost
-
resolveManagementHttpHost
-
setManagementHttpPort
-
getManagementHttpPort
-
resolveManagementHttpPort
protected int resolveManagementHttpPort() -
setManagementHttpEnableInterceptors
-
getManagementHttpEnableInterceptors
-
resolveManagementHttpEnableInterceptors
protected boolean resolveManagementHttpEnableInterceptors() -
setManagementHttpFollowRedirects
-
getManagementHttpFollowRedirects
-
resolveManagementHttpFollowRedirects
protected boolean resolveManagementHttpFollowRedirects() -
setManagementRequireHttps
-
getManagementRequireHttps
-
resolveManagementRequireHttps
protected boolean resolveManagementRequireHttps() -
setManagementUseHttp
-
getManagementUseHttp
-
resolveManagementUseHttp
protected boolean resolveManagementUseHttp() -
setServerRegionShortcut
protected void setServerRegionShortcut(org.apache.geode.cache.RegionShortcut regionShortcut) -
getServerRegionShortcut
-
resolveServerRegionShortcut
protected org.apache.geode.cache.RegionShortcut resolveServerRegionShortcut() -
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadatain interfaceorg.springframework.context.annotation.ImportAware
-
gemfireClusterSchemaObjectInitializer
@Bean public ClusterConfigurationConfiguration.ClusterSchemaObjectInitializer gemfireClusterSchemaObjectInitializer(org.springframework.core.env.Environment environment, org.apache.geode.cache.GemFireCache gemfireCache) -
resolveClientHttpRequestInterceptors
protected List<org.springframework.http.client.ClientHttpRequestInterceptor> resolveClientHttpRequestInterceptors(boolean enableInterceptors) -
resolveRestTemplateConfigurers
- Returns:
- a
Listof declared and registeredRestTemplateConfigurerbeans. - See Also:
-
resolveGemfireAdminOperations
protected GemfireAdminOperations resolveGemfireAdminOperations(org.springframework.core.env.Environment environment, org.apache.geode.cache.client.ClientCache clientCache) Attempts to resolve the theGemfireAdminOperationsobject from the SpringApplicationContextwhich is used to create Apache Geode or Pivotal GemFire schema objects.- Parameters:
environment- reference to theEnvironment.clientCache- reference to theClientCache.- Returns:
- the resovled
GemfireAdminOperationsinstance. - See Also:
-
EnvironmentGemfireAdminOperationsClientCachenewGemfireAdminOperations(Environment, ClientCache)
-