Class ClusterConfigurationConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.ClusterConfigurationConfiguration
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,ImportAware
,EnvironmentAware
@Configuration
public class ClusterConfigurationConfiguration
extends AbstractAnnotationConfigSupport
implements 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
- Author:
- John Blum
- See Also:
-
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
INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongemfireClusterSchemaObjectInitializer
(Environment environment, GemFireCache gemfireCache) protected Class<? extends Annotation>
Returns the cache applicationAnnotation
type pertaining to this configuration.protected Optional<RegionShortcut>
protected List<ClientHttpRequestInterceptor>
resolveClientHttpRequestInterceptors
(boolean enableInterceptors) protected GemfireAdminOperations
resolveGemfireAdminOperations
(Environment environment, 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 RegionShortcut
void
setImportMetadata
(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
(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, getLog, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, 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
-
getServerRegionShortcut
-
resolveServerRegionShortcut
-
setImportMetadata
- Specified by:
setImportMetadata
in interfaceImportAware
-
gemfireClusterSchemaObjectInitializer
@Bean public ClusterConfigurationConfiguration.ClusterSchemaObjectInitializer gemfireClusterSchemaObjectInitializer(Environment environment, GemFireCache gemfireCache) -
resolveClientHttpRequestInterceptors
protected List<ClientHttpRequestInterceptor> resolveClientHttpRequestInterceptors(boolean enableInterceptors) - Returns:
- a
List
of declared and registeredClientHttpRequestInterceptor
beans. - See Also:
-
resolveRestTemplateConfigurers
- Returns:
- a
List
of declared and registeredRestTemplateConfigurer
beans. - See Also:
-
resolveGemfireAdminOperations
protected GemfireAdminOperations resolveGemfireAdminOperations(Environment environment, 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)
-