public class GlobalTransactionScanner extends org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator implements ConfigurationChangeListener, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean
DO_NOT_PROXY, logger, PROXY_WITHOUT_ADDITIONAL_INTERCEPTORSCORE_LISTENER_THREAD, EXECUTOR_SERVICE, MAX_LISTENER_THREAD| 构造器和说明 |
|---|
GlobalTransactionScanner(String txServiceGroup)
Instantiates a new Global transaction scanner.
|
GlobalTransactionScanner(String txServiceGroup,
int mode)
Instantiates a new Global transaction scanner.
|
GlobalTransactionScanner(String applicationId,
String txServiceGroup)
Instantiates a new Global transaction scanner.
|
GlobalTransactionScanner(String applicationId,
String txServiceGroup,
FailureHandler failureHandlerHook)
Instantiates a new Global transaction scanner.
|
GlobalTransactionScanner(String applicationId,
String txServiceGroup,
int mode)
Instantiates a new Global transaction scanner.
|
GlobalTransactionScanner(String applicationId,
String txServiceGroup,
int mode,
FailureHandler failureHandlerHook)
Instantiates a new Global transaction scanner.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
protected Object[] |
getAdvicesAndAdvisorsForBean(Class beanClass,
String beanName,
org.springframework.aop.TargetSource customTargetSource) |
void |
onChangeEvent(ConfigurationChangeEvent event)
Process.
|
void |
setAccessKey(String accessKey)
Sets access key.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setSecretKey(String secretKey)
Sets secret key.
|
protected Object |
wrapIfNecessary(Object bean,
String beanName,
Object cacheKey)
The following will be scanned, and added corresponding interceptor:
TM:
|
advisorsPreFiltered, buildAdvisors, createProxy, customizeProxyFactory, determineCandidateConstructors, getBeanFactory, getCacheKey, getCustomTargetSource, getEarlyBeanReference, isFrozen, isInfrastructureClass, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType, setAdvisorAdapterRegistry, setApplyCommonInterceptorsFirst, setBeanFactory, setCustomTargetSourceCreators, setFrozen, setInterceptorNames, shouldProxyTargetClass, shouldSkipevaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoadercopyFrom, isExposeProxy, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClass, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitafterEvent, beforeEvent, getExecutorService, onProcessEvent, onShutDownpublic GlobalTransactionScanner(String txServiceGroup)
txServiceGroup - the tx service grouppublic GlobalTransactionScanner(String txServiceGroup, int mode)
txServiceGroup - the tx service groupmode - the modepublic GlobalTransactionScanner(String applicationId, String txServiceGroup)
applicationId - the application idtxServiceGroup - the default server grouppublic GlobalTransactionScanner(String applicationId, String txServiceGroup, int mode)
applicationId - the application idtxServiceGroup - the tx service groupmode - the modepublic GlobalTransactionScanner(String applicationId, String txServiceGroup, FailureHandler failureHandlerHook)
applicationId - the application idtxServiceGroup - the tx service groupfailureHandlerHook - the failure handler hookpublic GlobalTransactionScanner(String applicationId, String txServiceGroup, int mode, FailureHandler failureHandlerHook)
applicationId - the application idtxServiceGroup - the tx service groupmode - the modefailureHandlerHook - the failure handler hookpublic void setAccessKey(String accessKey)
accessKey - the access keypublic void setSecretKey(String secretKey)
secretKey - the secret keypublic void destroy()
destroy 在接口中 org.springframework.beans.factory.DisposableBeanprotected Object wrapIfNecessary(Object bean, String beanName, Object cacheKey)
wrapIfNecessary 在类中 org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator// TM annotation
Corresponding interceptor:,
// TM handler
GlobalLock:,
// GlobalLock annotation
Corresponding interceptor:,
// GlobalLock handler
TCC mode:,
// TCC annotation on interface,
// TCC annotation on try method,
// Remote TCC service parser
Corresponding interceptor:,
// the interceptor of TCC modeprotected Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, org.springframework.aop.TargetSource customTargetSource) throws org.springframework.beans.BeansException
getAdvicesAndAdvisorsForBean 在类中 org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreatororg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onChangeEvent(ConfigurationChangeEvent event)
ConfigurationChangeListeneronChangeEvent 在接口中 ConfigurationChangeListenerevent - the eventCopyright © 2020 Seata. All rights reserved.