public class TccAnnotationProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
| Constructor and Description |
|---|
TccAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTccAdvise(Object bean,
String beanName,
Field field,
Class serviceClass)
Add TCC interceptor for tcc proxy bean
|
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
protected void |
process(Object bean,
String beanName,
Class<? extends Annotation> annotation)
Process annotation
|
protected void process(Object bean, String beanName, Class<? extends Annotation> annotation)
bean - the beanbeanName - the bean nameannotation - the annotationpublic void addTccAdvise(Object bean, String beanName, Field field, Class serviceClass) throws IllegalAccessException
bean - the beanbeanName - the bean namefield - the fieldserviceClass - the serviceClassIllegalAccessException - the illegal access exceptionpublic Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionCopyright © 2023 Seata. All rights reserved.