@Configuration public class EvictionConfiguration extends Object implements ApplicationContextAware, ImportAware
EvictionConfiguration
class is a Spring @Configuration
annotated class to enable
Eviction policy configuration on cache Regions
.BeanPostProcessor
,
ApplicationContext
,
ApplicationContextAware
,
Bean
,
Configuration
,
ImportAware
,
EvictionActionType
,
EvictionAttributesFactoryBean
,
EvictionPolicyType
,
RegionFactoryBean
,
ClientRegionFactoryBean
,
EvictionAttributes
,
Region
Modifier and Type | Class and Description |
---|---|
protected static class |
EvictionConfiguration.ComposableEvictionPolicyConfigurer
EvictionConfiguration.ComposableEvictionPolicyConfigurer is a EvictionConfiguration.EvictionPolicyConfigurer implementation that composes
multiple EvictionConfiguration.EvictionPolicyConfigurer objects into a composition using the Composite Software Design Pattern
making the composition appear as a single EvictionConfiguration.EvictionPolicyConfigurer . |
protected static interface |
EvictionConfiguration.EvictionPolicyConfigurer
EvictionConfiguration.EvictionPolicyConfigurer configures the Eviction policy of a GemFire Region . |
protected static class |
EvictionConfiguration.EvictionPolicyMetaData |
Constructor and Description |
---|
EvictionConfiguration() |
Modifier and Type | Method and Description |
---|---|
BeanPostProcessor |
evictionBeanPostProcessor() |
protected Class<? extends Annotation> |
getAnnotationType()
Returns the
Annotation type that enables and configures Eviction. |
protected String |
getAnnotationTypeName()
Returns the name of the
Annotation type that enables and configures Eviction. |
protected String |
getAnnotationTypeSimpleName()
Returns the simple name of the
Annotation type that enables and configures Eviction. |
protected EvictionConfiguration.EvictionPolicyConfigurer |
getEvictionPolicyConfigurer()
Returns a reference to the configured
EvictionConfiguration.EvictionPolicyConfigurer used to configure the Eviction policy
of a Region . |
protected static boolean |
isRegionFactoryBean(Object bean)
Determines whether the Spring bean is an instance of
RegionFactoryBean
or ClientRegionFactoryBean . |
void |
setApplicationContext(ApplicationContext applicationContext)
Sets a reference to the Spring
ApplicationContext . |
void |
setImportMetadata(AnnotationMetadata importMetadata) |
protected Class<? extends Annotation> getAnnotationType()
Annotation
type
that enables and configures Eviction.Annotation
type
to enable and configure Eviction.Annotation
,
Class
protected String getAnnotationTypeName()
Annotation
type that enables and configures Eviction.Annotation
type that enables and configures Eviction.Class.getName()
,
getAnnotationType()
protected String getAnnotationTypeSimpleName()
Annotation
type that enables and configures Eviction.Annotation
type that enables and configures Eviction.Class.getSimpleName()
,
getAnnotationType()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
ApplicationContext
.setApplicationContext
in interface ApplicationContextAware
applicationContext
- Spring ApplicationContext
in use.BeansException
- if an error occurs while storing a reference to the Spring ApplicationContext
.ApplicationContextAware.setApplicationContext(ApplicationContext)
,
ApplicationContext
protected static boolean isRegionFactoryBean(Object bean)
RegionFactoryBean
or ClientRegionFactoryBean
.bean
- Spring bean to evaluate.RegionFactoryBean
or the ClientRegionFactoryBean
.RegionFactoryBean
,
ClientRegionFactoryBean
public void setImportMetadata(AnnotationMetadata importMetadata)
setImportMetadata
in interface ImportAware
protected EvictionConfiguration.EvictionPolicyConfigurer getEvictionPolicyConfigurer()
EvictionConfiguration.EvictionPolicyConfigurer
used to configure the Eviction policy
of a Region
.EvictionConfiguration.EvictionPolicyConfigurer
.EvictionConfiguration.EvictionPolicyConfigurer
@Bean public BeanPostProcessor evictionBeanPostProcessor()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.