Class PdxConfiguration

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("PdxConfiguration") public class PdxConfiguration extends AbstractAnnotationConfigSupport implements org.springframework.context.annotation.ImportAware
The PdxConfiguration class is a Spring Configuration class that configures PDX on a GemFireCache instance.
Since:
2.1.0
See Also:
  • Field Details

  • Constructor Details

    • PdxConfiguration

      public PdxConfiguration()
  • 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.
    • getBeanFactory

      protected org.springframework.beans.factory.BeanFactory getBeanFactory()
      Description copied from class: AbstractAnnotationConfigSupport
      Returns a reference to the Spring BeanFactory in the current application context.
      Overrides:
      getBeanFactory in class AbstractAnnotationConfigSupport
      Returns:
      a reference to the Spring BeanFactory.
      See Also:
      • BeanFactory
    • setImportMetadata

      public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
      Specified by:
      setImportMetadata in interface org.springframework.context.annotation.ImportAware
    • getDiskStoreName

      protected Optional<String> getDiskStoreName()
    • isIgnoreUnreadFields

      protected boolean isIgnoreUnreadFields()
    • getIncludeDomainTypes

      protected Class<?>[] getIncludeDomainTypes()
    • isPersistent

      protected boolean isPersistent()
    • isReadSerialized

      protected boolean isReadSerialized()
    • getSerializerBeanName

      protected Optional<String> getSerializerBeanName()
    • configurePdx

      protected void configurePdx(@NonNull CacheFactoryBean cacheFactoryBean)
      Configures Pivotal GemFire/Apache Geode cache PDX Serialization.
      Parameters:
      cacheFactoryBean - CacheFactoryBean instance on which to configure PDX. with PDX de/serialization capabilities.
      See Also:
    • resolveConversionService

      protected Optional<org.springframework.core.convert.ConversionService> resolveConversionService()
      Resolves the configured ConversionService from the BeanFactory.
      Returns:
      an optionally configured ConversionService.
      See Also:
    • resolveMappingContext

      protected Optional<GemfireMappingContext> resolveMappingContext()
      Returns any configured GemfireMappingContext registered in the BeanFactory.
      Returns:
      an optionally configured GemfireMappingContext.
      See Also:
    • resolvePdxSerializer

      @NonNull protected org.apache.geode.pdx.PdxSerializer resolvePdxSerializer()
      Resolves the PdxSerializer used to configure the cache for PDX Serialization. implementing the PdxSerializer interface.
      Returns:
      the resolved PdxSerializer from configuration.
      See Also:
    • newPdxSerializer

      @NonNull protected <T extends org.apache.geode.pdx.PdxSerializer> T newPdxSerializer()
      Constructs a new instance of PdxSerializer.
      Type Parameters:
      T - Class type of the PdxSerializer.
      Returns:
      a new instance of PdxSerializer.
      See Also:
      • PdxSerializer