Class GemfireCacheTransactionsConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.transaction.config.GemfireCacheTransactionsConfiguration
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,ImportAware
,EnvironmentAware
@Configuration
@EnableTransactionManagement
public class GemfireCacheTransactionsConfiguration
extends AbstractAnnotationConfigSupport
implements ImportAware
The
GemfireCacheTransactionsConfiguration
class is a Spring @Configuration
class
used to enable Spring's Transaction Management infrastructure along with SDG's GemfireTransactionManager
to manage local, cache transactions for either Pivotal GemFire or Apache Geode.- Since:
- 2.0.0
- Author:
- John Blum
- See Also:
-
GemFireCache
TransactionListener
TransactionWriter
ApplicationEventPublisher
Bean
Configuration
ImportAware
AnnotationAttributes
AnnotatedTypeMetadata
CacheFactoryBean
ClientCacheConfigurer
PeerCacheConfigurer
AbstractAnnotationConfigSupport
GemfireTransactionManager
ComposableTransactionWriter
TransactionListenerAdapter
EnableTransactionManagement
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T>
-
Field Summary
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 Class<? extends Annotation>
Returns the cache applicationAnnotation
type pertaining to this configuration.protected void
registerGemFireCacheTransactionEventHandlers
(CacheFactoryBean cacheFactoryBean, TransactionListenerAdapter transactionListener) registerTransactionListenerAdapterClientCacheConfigurer
(ApplicationEventPublisher applicationEventPublisher) registerTransactionListenerAdapterPeerCacheConfigurer
(ApplicationEventPublisher applicationEventPublisher) void
setImportMetadata
(AnnotationMetadata annotationMetadata) transactionManager
(GemFireCache gemfireCache) Declares and registers SDG'sGemfireTransactionManager
as the transactionManager in Spring's Transaction Management infrastructure to manage local, GemFire/Geode cache transactions.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, getBeanFactory, 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
-
Constructor Details
-
GemfireCacheTransactionsConfiguration
public GemfireCacheTransactionsConfiguration()
-
-
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.
-
setImportMetadata
- Specified by:
setImportMetadata
in interfaceImportAware
-
transactionManager
Declares and registers SDG'sGemfireTransactionManager
as the transactionManager in Spring's Transaction Management infrastructure to manage local, GemFire/Geode cache transactions.- Parameters:
gemfireCache
- reference to theGemFireCache
.- Returns:
- a new instance of
GemfireTransactionManager
initialized with the givenGemFireCache
. - See Also:
-
registerTransactionListenerAdapterClientCacheConfigurer
@Bean @Order(2147483647) public ClientCacheConfigurer registerTransactionListenerAdapterClientCacheConfigurer(ApplicationEventPublisher applicationEventPublisher) -
registerTransactionListenerAdapterPeerCacheConfigurer
@Bean @Order(2147483647) public PeerCacheConfigurer registerTransactionListenerAdapterPeerCacheConfigurer(ApplicationEventPublisher applicationEventPublisher) -
registerGemFireCacheTransactionEventHandlers
protected void registerGemFireCacheTransactionEventHandlers(CacheFactoryBean cacheFactoryBean, TransactionListenerAdapter transactionListener)
-