Class PdxConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.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:
-
GemFireCache
PdxSerializer
BeanFactory
BeanFactoryPostProcessor
ConfigurableListableBeanFactory
Bean
Configuration
ImportAware
AnnotationAttributes
AnnotationMetadata
CacheFactoryBean
AbstractAnnotationConfigSupport
PdxDiskStoreAwareBeanFactoryPostProcessor
GemfireMappingContext
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
CURRENT_THREAD_CONTEXT_CLASS_LOADER, 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 org.springframework.beans.factory.BeanFactory
Returns a reference to the SpringBeanFactory
in the current application context.protected Class<?>[]
protected boolean
protected boolean
protected boolean
protected <T extends org.apache.geode.pdx.PdxSerializer>
TConstructs a new instance ofPdxSerializer
.protected Optional<org.springframework.core.convert.ConversionService>
Resolves the configuredConversionService
from theBeanFactory
.protected Optional<GemfireMappingContext>
Returns any configuredGemfireMappingContext
registered in theBeanFactory
.protected org.apache.geode.pdx.PdxSerializer
Resolves thePdxSerializer
used to configure the cache for PDX Serialization.void
setImportMetadata
(org.springframework.core.type.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, getLogger, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLogger, pdxProperty, poolProperty, propertyName, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, 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
protected org.springframework.beans.factory.BeanFactory 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:
-
BeanFactory
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
-
getDiskStoreName
-
isIgnoreUnreadFields
protected boolean isIgnoreUnreadFields() -
getIncludeDomainTypes
-
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:
-
ConversionService
Optional
getBeanFactory()
-
resolveMappingContext
Returns any configuredGemfireMappingContext
registered in theBeanFactory
.- Returns:
- an
optionally
configuredGemfireMappingContext
. - See Also:
-
resolvePdxSerializer
@NonNull protected org.apache.geode.pdx.PdxSerializer resolvePdxSerializer()Resolves thePdxSerializer
used to configure the cache for PDX Serialization. implementing thePdxSerializer
interface.- Returns:
- the resolved
PdxSerializer
from configuration. - See Also:
-
PdxSerializer
getBeanFactory()
-
newPdxSerializer
@NonNull protected <T extends org.apache.geode.pdx.PdxSerializer> T newPdxSerializer()Constructs a new instance ofPdxSerializer
.- Type Parameters:
T
-Class
type of thePdxSerializer
.- Returns:
- a new instance of
PdxSerializer
. - See Also:
-
PdxSerializer
-