public class AuditAnnotationAdvisor
extends org.springframework.aop.support.AbstractPointcutAdvisor
implements org.springframework.beans.factory.BeanFactoryAware
| 构造器和说明 |
|---|
AuditAnnotationAdvisor(SecurityContext securityContext,
AuditEventResolver auditEventResolver,
AuditEventPersister auditEventPersister)
Create a new
AsyncAnnotationAdvisor for bean-style configuration. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.aop.Pointcut |
buildPointcut(Class<? extends Annotation> auditAnnotationType)
Calculate a pointcut for the given auditable annotation types, if any.
|
org.aopalliance.aop.Advice |
getAdvice() |
org.springframework.aop.Pointcut |
getPointcut() |
void |
setAuditAnnotationType(Class<? extends Annotation> auditAnnotationType)
Set the 'audit' annotation type.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Set the
BeanFactory to be used when looking up executors by
qualifier. |
public AuditAnnotationAdvisor(SecurityContext securityContext, AuditEventResolver auditEventResolver, AuditEventPersister auditEventPersister)
AsyncAnnotationAdvisor for bean-style configuration.public void setAuditAnnotationType(Class<? extends Annotation> auditAnnotationType)
The default audit annotation type is the RequestMapping annotation.
This setter property exists so that developers can provide their own (non-Spring-specific) annotation type to indicate that a method is to be executed auditable.
auditAnnotationType - the desired annotation typepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
BeanFactory to be used when looking up executors by
qualifier.setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAwarepublic org.aopalliance.aop.Advice getAdvice()
getAdvice 在接口中 org.springframework.aop.Advisorpublic org.springframework.aop.Pointcut getPointcut()
getPointcut 在接口中 org.springframework.aop.PointcutAdvisorprotected org.springframework.aop.Pointcut buildPointcut(Class<? extends Annotation> auditAnnotationType)
auditAnnotationType - the auditable annotation types to introspectnull if noneCopyright © 2016. All rights reserved.