Class EvictionConfiguration

java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.EvictionConfiguration
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.ApplicationContextAware, org.springframework.context.EnvironmentAware

@Configuration public class EvictionConfiguration extends AbstractAnnotationConfigSupport implements org.springframework.context.ApplicationContextAware, org.springframework.context.annotation.ImportAware
The EvictionConfiguration class is a Spring @Configuration annotated class to enable Eviction policy configuration on cache Regions.
Since:
1.9.0
See Also:
  • Constructor Details

    • EvictionConfiguration

      public EvictionConfiguration()
  • Method Details

    • getAnnotationType

      @NonNull protected Class<? extends Annotation> getAnnotationType()
      Returns the Annotation type that enables and configures Eviction.
      Specified by:
      getAnnotationType in class AbstractAnnotationConfigSupport
      Returns:
      the Annotation type to enable and configure Eviction.
      See Also:
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Sets a reference to the Spring ApplicationContext.
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Parameters:
      applicationContext - Spring ApplicationContext in use.
      Throws:
      org.springframework.beans.BeansException - if an error occurs while storing a reference to the Spring ApplicationContext.
      See Also:
      • ApplicationContextAware.setApplicationContext(ApplicationContext)
      • ApplicationContext
    • setImportMetadata

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

      protected static boolean isRegionFactoryBean(Object bean)
      Determines whether the Spring bean is an instance of EvictingRegionFactoryBean.
      Parameters:
      bean - Spring bean to evaluate.
      Returns:
      a boolean value indicating whether the Spring bean is an instance of EvictingRegionFactoryBean.
      See Also:
    • getEvictionPolicyConfigurer

      protected EvictionConfiguration.EvictionPolicyConfigurer getEvictionPolicyConfigurer()
      Returns a reference to the configured EvictionConfiguration.EvictionPolicyConfigurer used to configure the Eviction policy of a Region.
      Returns:
      a reference to the configured EvictionConfiguration.EvictionPolicyConfigurer.
      See Also:
    • evictionBeanPostProcessor

      @Bean public org.springframework.beans.factory.config.BeanPostProcessor evictionBeanPostProcessor()
    • evictionContextRefreshedListener

      @EventListener(org.springframework.context.event.ContextRefreshedEvent.class) public void evictionContextRefreshedListener(@NonNull org.springframework.context.event.ContextRefreshedEvent event)