Class PdxConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.PdxConfiguration
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,ImportAware
,EnvironmentAware
@Configuration("PdxConfiguration")
public class PdxConfiguration
extends AbstractAnnotationConfigSupport
implements ImportAware
The
PdxConfiguration
class is a Spring Configuration
class that configures PDX
on a GemFireCache
instance.- Since:
- 2.1.0
- Author:
- John Blum
- See Also:
-
GemFireCache
PdxSerializer
BeanFactory
BeanFactoryPostProcessor
ConfigurableListableBeanFactory
Bean
Configuration
ImportAware
AnnotationAttributes
AnnotationMetadata
CacheFactoryBean
AbstractAnnotationConfigSupport
PdxDiskStoreAwareBeanFactoryPostProcessor
MappingPdxSerializer
NoOpBeanFactoryPostProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final String
static final String
static final boolean
static final boolean
Fields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configurePdx
(CacheFactoryBean cacheFactoryBean) Configures Pivotal GemFire/Apache Geode cache PDX Serialization.protected Class<? extends Annotation>
Returns the cache applicationAnnotation
type pertaining to this configuration.protected BeanFactory
Returns a reference to the SpringBeanFactory
in the current application context.protected boolean
protected boolean
protected boolean
protected <T extends PdxSerializer>
TConstructs a new instance ofPdxSerializer
.protected Optional<ConversionService>
Resolves the configuredConversionService
from theBeanFactory
.protected Optional<GemfireMappingContext>
Returns any configuredGemfireMappingContext
registered in theBeanFactory
.protected PdxSerializer
Resolves thePdxSerializer
used to configure the cache for PDX Serialization.void
setImportMetadata
(AnnotationMetadata importMetadata) Methods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getEnvironment, getEvaluationContext, getLog, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
-
Field Details
-
DEFAULT_IGNORE_UNREAD_FIELDS
public static final boolean DEFAULT_IGNORE_UNREAD_FIELDS- See Also:
-
DEFAULT_PERSISTENT
public static final boolean DEFAULT_PERSISTENT- See Also:
-
DEFAULT_READ_SERIALIZED
public static final boolean DEFAULT_READ_SERIALIZED- See Also:
-
DEFAULT_PDX_DISK_STORE_NAME
- See Also:
-
DEFAULT_PDX_SERIALIZER_BEAN_NAME
- See Also:
-
-
Constructor Details
-
PdxConfiguration
public PdxConfiguration()
-
-
Method Details
-
getAnnotationType
Description copied from class:AbstractAnnotationConfigSupport
Returns the cache applicationAnnotation
type pertaining to this configuration.- Specified by:
getAnnotationType
in classAbstractAnnotationConfigSupport
- Returns:
- the cache application
Annotation
type used by this application.
-
getBeanFactory
Description copied from class:AbstractAnnotationConfigSupport
Returns a reference to the SpringBeanFactory
in the current application context.- Overrides:
getBeanFactory
in classAbstractAnnotationConfigSupport
- Returns:
- a reference to the Spring
BeanFactory
. - See Also:
-
setImportMetadata
- Specified by:
setImportMetadata
in interfaceImportAware
-
getDiskStoreName
-
isIgnoreUnreadFields
protected boolean isIgnoreUnreadFields() -
isPersistent
protected boolean isPersistent() -
isReadSerialized
protected boolean isReadSerialized() -
getSerializerBeanName
-
configurePdx
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
Resolves the configuredConversionService
from theBeanFactory
.- Returns:
- an
optionally
configuredConversionService
. - See Also:
-
resolveMappingContext
Returns any configuredGemfireMappingContext
registered in theBeanFactory
.- Returns:
- an
optionally
configuredGemfireMappingContext
. - See Also:
-
resolvePdxSerializer
Resolves thePdxSerializer
used to configure the cache for PDX Serialization. implementing thePdxSerializer
interface.- Returns:
- the resolved
PdxSerializer
from configuration. - See Also:
-
newPdxSerializer
Constructs a new instance ofPdxSerializer
.- Type Parameters:
T
-Class
type of thePdxSerializer
.- Returns:
- a new instance of
PdxSerializer
. - See Also:
-