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:
-
Annotation
GemFireCache
Region
ClientCache
Index
ListableBeanFactory
BeanPostProcessor
Bean
Configuration
ImportAware
EventListener
AnnotationAttributes
Environment
AnnotationMetadata
GemfireAdminOperations
AbstractAnnotationConfigSupport
ClientHttpRequestInterceptor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final boolean
protected static final boolean
protected static final String
protected static final int
protected static final boolean
protected static final boolean
protected static final String
protected static final String
protected static final String
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptiongemfireClusterSchemaObjectInitializer
(org.springframework.core.env.Environment environment, org.apache.geode.cache.GemFireCache gemfireCache) protected Class<? extends Annotation>
Returns the cache applicationAnnotation
type pertaining to this configuration.protected Optional<org.apache.geode.cache.RegionShortcut>
protected List<org.springframework.http.client.ClientHttpRequestInterceptor>
resolveClientHttpRequestInterceptors
(boolean enableInterceptors) protected GemfireAdminOperations
resolveGemfireAdminOperations
(org.springframework.core.env.Environment environment, org.apache.geode.cache.client.ClientCache clientCache) Attempts to resolve the theGemfireAdminOperations
object from the SpringApplicationContext
which is used to create Apache Geode or Pivotal GemFire schema objects.protected boolean
protected boolean
protected String
protected int
protected boolean
protected boolean
protected List<RestTemplateConfigurer>
protected org.apache.geode.cache.RegionShortcut
void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) protected void
setManagementHttpEnableInterceptors
(Boolean enableInterceptors) protected void
setManagementHttpFollowRedirects
(Boolean followRedirects) protected void
setManagementHttpHost
(String hostname) protected void
setManagementHttpPort
(Integer managementHttpPort) protected void
setManagementRequireHttps
(Boolean requireHttps) protected void
setManagementUseHttp
(Boolean useHttp) protected void
setServerRegionShortcut
(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:AbstractAnnotationConfigSupport
Returns the cache applicationAnnotation
type pertaining to this configuration.- Specified by:
getAnnotationType
in classAbstractAnnotationConfigSupport
- Returns:
- the cache application
Annotation
type 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:
setImportMetadata
in 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
List
of declared and registeredRestTemplateConfigurer
beans. - See Also:
-
resolveGemfireAdminOperations
protected GemfireAdminOperations resolveGemfireAdminOperations(org.springframework.core.env.Environment environment, org.apache.geode.cache.client.ClientCache clientCache) Attempts to resolve the theGemfireAdminOperations
object from the SpringApplicationContext
which is used to create Apache Geode or Pivotal GemFire schema objects.- Parameters:
environment
- reference to theEnvironment
.clientCache
- reference to theClientCache
.- Returns:
- the resovled
GemfireAdminOperations
instance. - See Also:
-
Environment
GemfireAdminOperations
ClientCache
newGemfireAdminOperations(Environment, ClientCache)
-