@Configuration(value="PdxConfiguration") public class PdxConfiguration extends AbstractAnnotationConfigSupport implements ImportAware
PdxConfiguration
class is a Spring Configuration
class that configures PDX
on a GemFireCache
instance.GemFireCache
,
PdxSerializer
,
BeanFactory
,
BeanFactoryPostProcessor
,
ConfigurableListableBeanFactory
,
Bean
,
Configuration
,
ImportAware
,
AnnotationAttributes
,
AnnotationMetadata
,
CacheFactoryBean
,
AbstractAnnotationConfigSupport
,
PdxDiskStoreAwareBeanFactoryPostProcessor
,
GemfireMappingContext
,
MappingPdxSerializer
,
NoOpBeanFactoryPostProcessor
AbstractAnnotationConfigSupport.TypeResolver<T>
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_IGNORE_UNREAD_FIELDS |
static String |
DEFAULT_PDX_DISK_STORE_NAME |
static String |
DEFAULT_PDX_SERIALIZER_BEAN_NAME |
static boolean |
DEFAULT_PERSISTENT |
static boolean |
DEFAULT_READ_SERIALIZED |
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
Constructor and Description |
---|
PdxConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
configurePdx(CacheFactoryBean cacheFactoryBean)
Configures Pivotal GemFire/Apache Geode cache PDX Serialization.
|
protected Class<? extends Annotation> |
getAnnotationType()
Returns the cache application
Annotation type pertaining to this configuration. |
protected BeanFactory |
getBeanFactory()
Returns a reference to the Spring
BeanFactory in the current application context. |
protected Optional<String> |
getDiskStoreName() |
protected Class<?>[] |
getIncludeDomainTypes() |
protected Optional<String> |
getSerializerBeanName() |
protected boolean |
isIgnoreUnreadFields() |
protected boolean |
isPersistent() |
protected boolean |
isReadSerialized() |
protected <T extends org.apache.geode.pdx.PdxSerializer> |
newPdxSerializer()
Constructs a new instance of
PdxSerializer . |
protected Optional<ConversionService> |
resolveConversionService()
Resolves the configured
ConversionService from the BeanFactory . |
protected Optional<GemfireMappingContext> |
resolveMappingContext()
Returns any configured
GemfireMappingContext registered in the BeanFactory . |
protected org.apache.geode.pdx.PdxSerializer |
resolvePdxSerializer()
Resolves the
PdxSerializer used to configure the cache for PDX Serialization. |
void |
setImportMetadata(AnnotationMetadata importMetadata) |
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, redisServiceProperty, 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
public static final boolean DEFAULT_IGNORE_UNREAD_FIELDS
public static final boolean DEFAULT_PERSISTENT
public static final boolean DEFAULT_READ_SERIALIZED
public static final String DEFAULT_PDX_DISK_STORE_NAME
public static final String DEFAULT_PDX_SERIALIZER_BEAN_NAME
protected Class<? extends Annotation> getAnnotationType()
AbstractAnnotationConfigSupport
Annotation
type pertaining to this configuration.getAnnotationType
in class AbstractAnnotationConfigSupport
Annotation
type used by this application.protected BeanFactory getBeanFactory()
AbstractAnnotationConfigSupport
BeanFactory
in the current application context.getBeanFactory
in class AbstractAnnotationConfigSupport
BeanFactory
.BeanFactory
public void setImportMetadata(AnnotationMetadata importMetadata)
setImportMetadata
in interface ImportAware
protected boolean isIgnoreUnreadFields()
protected Class<?>[] getIncludeDomainTypes()
protected boolean isPersistent()
protected boolean isReadSerialized()
protected void configurePdx(@NonNull CacheFactoryBean cacheFactoryBean)
cacheFactoryBean
- CacheFactoryBean
instance on which to configure PDX.
with PDX de/serialization capabilities.CacheFactoryBean
,
Geode PDX Serializationprotected Optional<ConversionService> resolveConversionService()
ConversionService
from the BeanFactory
.optionally
configured ConversionService
.ConversionService
,
Optional
,
getBeanFactory()
protected Optional<GemfireMappingContext> resolveMappingContext()
GemfireMappingContext
registered in the BeanFactory
.optionally
configured GemfireMappingContext
.GemfireMappingContext
,
Optional
,
getBeanFactory()
@NonNull protected org.apache.geode.pdx.PdxSerializer resolvePdxSerializer()
PdxSerializer
used to configure the cache for PDX Serialization.
implementing the PdxSerializer
interface.PdxSerializer
from configuration.PdxSerializer
,
getBeanFactory()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.