Spring Data for VMware GemFire
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:
-
GemFireCachePdxSerializerBeanFactoryBeanFactoryPostProcessorConfigurableListableBeanFactoryBeanConfigurationImportAwareAnnotationAttributesAnnotationMetadataCacheFactoryBeanAbstractAnnotationConfigSupportPdxDiskStoreAwareBeanFactoryPostProcessorGemfireMappingContextMappingPdxSerializerNoOpBeanFactoryPostProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final Stringstatic final Stringstatic final booleanstatic final booleanFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigurePdx(CacheFactoryBean cacheFactoryBean) Configures Pivotal GemFire/Apache Geode cache PDX Serialization.protected Class<? extends Annotation>Returns the cache applicationAnnotationtype pertaining to this configuration.protected org.springframework.beans.factory.BeanFactoryReturns a reference to the SpringBeanFactoryin the current application context.protected Class<?>[]protected booleanprotected booleanprotected booleanprotected <T extends org.apache.geode.pdx.PdxSerializer>
TConstructs a new instance ofPdxSerializer.protected Optional<org.springframework.core.convert.ConversionService>Resolves the configuredConversionServicefrom theBeanFactory.protected Optional<GemfireMappingContext>Returns any configuredGemfireMappingContextregistered in theBeanFactory.protected org.apache.geode.pdx.PdxSerializerResolves thePdxSerializerused to configure the cache for PDX Serialization.voidsetImportMetadata(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:AbstractAnnotationConfigSupportReturns the cache applicationAnnotationtype pertaining to this configuration.- Specified by:
getAnnotationTypein classAbstractAnnotationConfigSupport- Returns:
- the cache application
Annotationtype used by this application.
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()Description copied from class:AbstractAnnotationConfigSupportReturns a reference to the SpringBeanFactoryin the current application context.- Overrides:
getBeanFactoryin classAbstractAnnotationConfigSupport- Returns:
- a reference to the Spring
BeanFactory. - See Also:
-
BeanFactory
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadatain 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-CacheFactoryBeaninstance on which to configure PDX. with PDX de/serialization capabilities.- See Also:
-
resolveConversionService
Resolves the configuredConversionServicefrom theBeanFactory.- Returns:
- an
optionallyconfiguredConversionService. - See Also:
-
ConversionServiceOptionalgetBeanFactory()
-
resolveMappingContext
Returns any configuredGemfireMappingContextregistered in theBeanFactory.- Returns:
- an
optionallyconfiguredGemfireMappingContext. - See Also:
-
resolvePdxSerializer
@NonNull protected org.apache.geode.pdx.PdxSerializer resolvePdxSerializer()Resolves thePdxSerializerused to configure the cache for PDX Serialization. implementing thePdxSerializerinterface.- Returns:
- the resolved
PdxSerializerfrom configuration. - See Also:
-
PdxSerializergetBeanFactory()
-
newPdxSerializer
@NonNull protected <T extends org.apache.geode.pdx.PdxSerializer> T newPdxSerializer()Constructs a new instance ofPdxSerializer.- Type Parameters:
T-Classtype of thePdxSerializer.- Returns:
- a new instance of
PdxSerializer. - See Also:
-
PdxSerializer
-