Class EmbeddedServiceConfigurationSupport

java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.support.EmbeddedServiceConfigurationSupport
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware
Direct Known Subclasses:
AuthConfiguration, GemFirePropertiesConfiguration, GeodeIntegratedSecurityConfiguration, HttpServiceConfiguration, LocatorConfiguration, LoggingConfiguration, ManagerConfiguration, McastConfiguration, MemcachedServerConfiguration, OffHeapConfiguration, SslConfiguration, StatisticsConfiguration

public abstract class EmbeddedServiceConfigurationSupport extends AbstractAnnotationConfigSupport implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar
An abstract base class supporting the configuration of Apache Geode embedded services.
Since:
1.9.0
See Also:
  • Field Details

  • Constructor Details

    • EmbeddedServiceConfigurationSupport

      public EmbeddedServiceConfigurationSupport()
  • Method Details

    • getCacheConfiguration

      @NonNull protected <T extends AbstractCacheConfiguration> T getCacheConfiguration()
      Returns a reference to an instance of the AbstractCacheConfiguration class used to configure a GemFire (Singleton, client or peer) cache instance along with it's associated, embedded services.
      Type Parameters:
      T - Class type extension of AbstractCacheConfiguration.
      Returns:
      a reference to a single AbstractCacheConfiguration instance.
      Throws:
      IllegalStateException - if the AbstractCacheConfiguration reference was not configured.
      See Also:
    • registerBeanDefinitions

      public final void registerBeanDefinitions(@NonNull org.springframework.core.type.AnnotationMetadata importingClassMetadata, @NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Specified by:
      registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
    • registerBeanDefinitions

      protected void registerBeanDefinitions(@NonNull org.springframework.core.type.AnnotationMetadata importingClassMetadata, @NonNull org.springframework.core.annotation.AnnotationAttributes annotationAttributes, @NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
    • registerBeanDefinitions

      protected void registerBeanDefinitions(@NonNull org.springframework.core.type.AnnotationMetadata importingClassMetadata, @NonNull Map<String,Object> annotationAttributes, @NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
    • setGemFireProperties

      protected void setGemFireProperties(@NonNull org.springframework.core.type.AnnotationMetadata importingClassMetadata, @NonNull org.springframework.core.annotation.AnnotationAttributes annotationAttributes, @NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
    • toGemFireProperties

      @Nullable protected abstract Properties toGemFireProperties(@NonNull Map<String,Object> annotationAttributes)
    • hasProperties

      protected boolean hasProperties(@Nullable Properties properties)
    • registerGemFirePropertiesBeanPostProcessor

      protected void registerGemFirePropertiesBeanPostProcessor(@NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemFireProperties)
    • registerGemFirePropertiesConfigurer

      protected void registerGemFirePropertiesConfigurer(@NonNull org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties)
    • registerClientGemFirePropertiesConfigurer

      protected void registerClientGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties)
    • registerLocatorGemFirePropertiesConfigurer

      protected void registerLocatorGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties)
    • registerPeerGemFirePropertiesConfigurer

      protected void registerPeerGemFirePropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Properties gemfireProperties)
    • newBeanDefinitionHolder

      protected org.springframework.beans.factory.config.BeanDefinitionHolder newBeanDefinitionHolder(org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
    • generateBeanName

      protected String generateBeanName()
    • generateBeanName

      protected String generateBeanName(Class<?> typeQualifier)
    • generateBeanName

      protected String generateBeanName(String nameQualifier)
    • resolveBean

      protected <T> T resolveBean(Class<T> beanType)
      Resolves a Spring managed bean with the given Class type from the Spring BeanFactory. It is assumed that the given typed bean is the only bean of this Class type. If more than 1 bean of the given Class type is found, then the Spring BeanFactory will throw a NoUniqueBeanDefinitionException. If the BeanFactory is an instance of AutowireCapableBeanFactory, then the returned bean will also be configured.
      Type Parameters:
      T - Class type of the registered Spring managed bean.
      Parameters:
      beanType - required Class type of the registered Spring managed bean.
      Returns:
      a Spring managed bean instance for the given, required Class type, or null if no bean instance of the given, required Class type could be found.
      Throws:
      org.springframework.beans.BeansException - if the Spring manage bean of the required Class type could not be resolved.
      See Also:
    • resolveHost

      @Nullable protected String resolveHost(@Nullable String hostname)
    • resolveHost

      @Nullable protected String resolveHost(@Nullable String hostname, @Nullable String defaultHostname)
    • resolvePort

      @Nullable protected Integer resolvePort(@Nullable Integer port)
    • resolvePort

      @Nullable protected Integer resolvePort(@Nullable Integer port, @Nullable Integer defaultPort)