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:
  • 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

      protected static final String DEFAULT_MANAGEMENT_HTTP_HOST
      See Also:
    • HTTP_FOLLOW_REDIRECTS_PROPERTY

      protected static final String HTTP_FOLLOW_REDIRECTS_PROPERTY
      See Also:
    • HTTP_SCHEME

      protected static final String HTTP_SCHEME
      See Also:
    • HTTPS_SCHEME

      protected static final String HTTPS_SCHEME
      See Also:
  • Constructor Details

    • ClusterConfigurationConfiguration

      public ClusterConfigurationConfiguration()
  • Method Details

    • getAnnotationType

      protected Class<? extends Annotation> getAnnotationType()
      Description copied from class: AbstractAnnotationConfigSupport
      Returns the cache application Annotation type pertaining to this configuration.
      Specified by:
      getAnnotationType in class AbstractAnnotationConfigSupport
      Returns:
      the cache application Annotation type used by this application.
    • setManagementHttpHost

      protected void setManagementHttpHost(String hostname)
    • getManagementHttpHost

      protected Optional<String> getManagementHttpHost()
    • resolveManagementHttpHost

      protected String resolveManagementHttpHost()
    • setManagementHttpPort

      protected void setManagementHttpPort(Integer managementHttpPort)
    • getManagementHttpPort

      protected Optional<Integer> getManagementHttpPort()
    • resolveManagementHttpPort

      protected int resolveManagementHttpPort()
    • setManagementHttpEnableInterceptors

      protected void setManagementHttpEnableInterceptors(Boolean enableInterceptors)
    • getManagementHttpEnableInterceptors

      protected Optional<Boolean> getManagementHttpEnableInterceptors()
    • resolveManagementHttpEnableInterceptors

      protected boolean resolveManagementHttpEnableInterceptors()
    • setManagementHttpFollowRedirects

      protected void setManagementHttpFollowRedirects(Boolean followRedirects)
    • getManagementHttpFollowRedirects

      protected Optional<Boolean> getManagementHttpFollowRedirects()
    • resolveManagementHttpFollowRedirects

      protected boolean resolveManagementHttpFollowRedirects()
    • setManagementRequireHttps

      protected void setManagementRequireHttps(Boolean requireHttps)
    • getManagementRequireHttps

      protected Optional<Boolean> getManagementRequireHttps()
    • resolveManagementRequireHttps

      protected boolean resolveManagementRequireHttps()
    • setManagementUseHttp

      protected void setManagementUseHttp(Boolean useHttp)
    • getManagementUseHttp

      protected Optional<Boolean> getManagementUseHttp()
    • resolveManagementUseHttp

      protected boolean resolveManagementUseHttp()
    • setServerRegionShortcut

      protected void setServerRegionShortcut(org.apache.geode.cache.RegionShortcut regionShortcut)
    • getServerRegionShortcut

      protected Optional<org.apache.geode.cache.RegionShortcut> getServerRegionShortcut()
    • resolveServerRegionShortcut

      protected org.apache.geode.cache.RegionShortcut resolveServerRegionShortcut()
    • setImportMetadata

      public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
      Specified by:
      setImportMetadata in interface org.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)
      Attempts to resolve a List of ClientHttpRequestInterceptor beans in the Spring ApplicationContext.
      Returns:
      a List of declared and registered ClientHttpRequestInterceptor beans.
      See Also:
      • ClientHttpRequestInterceptor
      • List
    • resolveRestTemplateConfigurers

      protected List<RestTemplateConfigurer> resolveRestTemplateConfigurers()
      Attempts to resolve a List of RestTemplateConfigurer beans in the Spring ApplicationContext.
      Returns:
      a List of declared and registered RestTemplateConfigurer beans.
      See Also:
    • resolveGemfireAdminOperations

      protected GemfireAdminOperations resolveGemfireAdminOperations(org.springframework.core.env.Environment environment, org.apache.geode.cache.client.ClientCache clientCache)
      Attempts to resolve the the GemfireAdminOperations object from the Spring ApplicationContext which is used to create Apache Geode or Pivotal GemFire schema objects.
      Parameters:
      environment - reference to the Environment.
      clientCache - reference to the ClientCache.
      Returns:
      the resovled GemfireAdminOperations instance.
      See Also: