接口的使用
infra.aop.Advisor
使用Advisor的程序包
程序包
说明
Aspect Programming
AspectJ integration package.
Classes enabling AspectJ 5 @Annotated classes to be used in Framework AOP.
Base classes enabling auto-proxying based on AspectJ.
Package containing Infra basic AOP infrastructure, compliant with the
AOP Alliance interfaces.
SPI package allowing AOP framework to handle arbitrary advice types.
Bean post-processors for use in ApplicationContexts to simplify AOP usage
by automatically creating AOP proxies without the need to use a ProxyFactoryBean.
Provides miscellaneous interceptor implementations.
-
infra.aop中Advisor的使用
修饰符和类型接口说明interfaceSuperinterface for advisors that perform one or more AOP introductions.interfaceSuperinterface for all Advisors that are driven by a pointcut.修饰符和类型方法说明private static booleanDefaultInterceptorChainFactory.hasMatchingIntroductions(Advisor[] advisors, Class<?> actualClass) Determine whether the Advisors contain matching introductions. -
infra.aop.aspectj中Advisor的使用
修饰符和类型接口说明interfaceInterface to be implemented by Framework AOP Advisors wrapping AspectJ aspects that may have a lazy initialization strategy.实现Advisor的infra.aop.aspectj中的类修饰符和类型类说明classFramework AOP Advisor that can be used for any AspectJ pointcut expression.classAspectJPointcutAdvisor that adapts anAbstractAspectJAdviceto thePointcutAdvisorinterface.classIntroduction advisor delegating to the given object.参数类型为Advisor的infra.aop.aspectj中的方法修饰符和类型方法说明static AspectJPrecedenceInformationAspectJAopUtils.getAspectJPrecedenceInformationFor(Advisor anAdvisor) Return the AspectJPrecedenceInformation provided by this advisor or its advice.static booleanAspectJAopUtils.isAfterAdvice(Advisor anAdvisor) Returntrueif the advisor is a form of after advice.private static booleanAspectJProxyUtils.isAspectJAdvice(Advisor advisor) Determine whether the given Advisor contains an AspectJ advice.static booleanAspectJAopUtils.isBeforeAdvice(Advisor anAdvisor) Returntrueif the advisor is a form of before advice.类型变量类型为Advisor的infra.aop.aspectj中的方法参数修饰符和类型方法说明static booleanAspectJProxyUtils.makeAdvisorChainAspectJCapableIfNecessary(List<Advisor> advisors) Add special advisors if necessary to work with a proxy chain that contains AspectJ advisors: concretely,ExposeInvocationInterceptorat the beginning of the list. -
infra.aop.aspectj.annotation中Advisor的使用
修饰符和类型类说明(专用程序包) final classInternal implementation of AspectJPointcutAdvisor.protected static classSynthetic advisor that instantiates the aspect.类型参数类型为Advisor的infra.aop.aspectj.annotation中的字段修饰符和类型字段说明AspectJBeanFactoryInitializationAotProcessor.AspectContribution.advisorsBeanFactoryAspectJAdvisorsBuilder.advisorsCache修饰符和类型方法说明AspectJAdvisorFactory.getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, String aspectName) Build a Framework AOP Advisor for the given AspectJ advice method.ReflectiveAspectJAdvisorFactory.getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrderInAspect, String aspectName) private AdvisorReflectiveAspectJAdvisorFactory.getDeclareParentsAdvisor(Field introductionField) Build aDeclareParentsAdvisorfor the given introduction field.返回变量类型为Advisor的类型的infra.aop.aspectj.annotation中的方法修饰符和类型方法说明BeanFactoryAspectJAdvisorsBuilder.buildAspectJAdvisors()Look for AspectJ-annotated aspect beans in the current bean factory, and return to a list of Framework AOP Advisors representing them.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors()AspectJAdvisorFactory.getAdvisors(MetadataAwareAspectInstanceFactory aspectInstanceFactory) Build Framework AOP Advisors for all annotated At-AspectJ methods on the specified aspect instance.ReflectiveAspectJAdvisorFactory.getAdvisors(MetadataAwareAspectInstanceFactory aspectInstanceFactory) 类型变量类型为Advisor的infra.aop.aspectj.annotation中的构造器参数 -
infra.aop.aspectj.autoproxy中Advisor的使用
修饰符和类型字段说明private final AdvisorAspectJAwareAdvisorAutoProxyCreator.PartiallyComparableAdvisorHolder.advisoradvisor记录组件的字段。类型参数类型为Advisor的infra.aop.aspectj.autoproxy中的字段修饰符和类型字段说明private final Comparator<? super Advisor>AspectJPrecedenceComparator.advisorComparatorprivate final Comparator<Advisor>AspectJAwareAdvisorAutoProxyCreator.PartiallyComparableAdvisorHolder.comparatorcomparator记录组件的字段。private static final Comparator<Advisor>AspectJAwareAdvisorAutoProxyCreator.DEFAULT_PRECEDENCE_COMPARATOR修饰符和类型方法说明AspectJAwareAdvisorAutoProxyCreator.PartiallyComparableAdvisorHolder.advisor()返回advisor记录组件的值。AspectJAwareAdvisorAutoProxyCreator.PartiallyComparableAdvisorHolder.getAdvisor()返回变量类型为Advisor的类型的infra.aop.aspectj.autoproxy中的方法修饰符和类型方法说明AspectJAwareAdvisorAutoProxyCreator.PartiallyComparableAdvisorHolder.comparator()返回comparator记录组件的值。AspectJAwareAdvisorAutoProxyCreator.sortAdvisors(List<Advisor> advisors) Sort the suppliedAdvisorinstances according to AspectJ precedence.参数类型为Advisor的infra.aop.aspectj.autoproxy中的方法修饰符和类型方法说明intprivate intAspectJPrecedenceComparator.comparePrecedenceWithinAspect(Advisor advisor1, Advisor advisor2) private booleanAspectJPrecedenceComparator.declaredInSameAspect(Advisor advisor1, Advisor advisor2) private intAspectJPrecedenceComparator.getAspectDeclarationOrder(Advisor advisor) private StringAspectJPrecedenceComparator.getAspectName(Advisor advisor) private booleanAspectJPrecedenceComparator.hasAspectName(Advisor advisor) 类型变量类型为Advisor的infra.aop.aspectj.autoproxy中的方法参数修饰符和类型方法说明protected voidAspectJAwareAdvisorAutoProxyCreator.extendAdvisors(List<Advisor> candidateAdvisors) Add anExposeInvocationInterceptorto the beginning of the advice chain.AspectJAwareAdvisorAutoProxyCreator.sortAdvisors(List<Advisor> advisors) Sort the suppliedAdvisorinstances according to AspectJ precedence.参数类型为Advisor的infra.aop.aspectj.autoproxy中的构造器限定符构造器说明privatePartiallyComparableAdvisorHolder(Advisor advisor, Comparator<Advisor> comparator) 创建PartiallyComparableAdvisorHolder记录的实例。类型变量类型为Advisor的infra.aop.aspectj.autoproxy中的构造器参数限定符构造器说明AspectJPrecedenceComparator(Comparator<? super Advisor> advisorComparator) privatePartiallyComparableAdvisorHolder(Advisor advisor, Comparator<Advisor> comparator) 创建PartiallyComparableAdvisorHolder记录的实例。 -
infra.aop.framework中Advisor的使用
修饰符和类型类说明private static classStub for an Advisor instance that is just needed for key purposes, allowing for efficient equals and hashCode comparisons against the advice class and the pointcut.private static classUsed in the interceptor chain where we need to replace a bean with a prototype on creating a proxy.声明为Advisor的infra.aop.framework中的字段类型参数类型为Advisor的infra.aop.framework中的字段修饰符和类型字段说明AdvisedSupport.advisorKeyList of minimalAdvisedSupport.AdvisorKeyEntryinstances, to be assigned to theAdvisedSupport.advisorsfield on reduction.AdvisedSupport.advisorsList of Advisors.返回Advisor的infra.aop.framework中的方法修饰符和类型方法说明Advisor[]Advised.getAdvisors()Return the advisors applying to this proxy.final Advisor[]AdvisedSupport.getAdvisors()private AdvisorProxyFactoryBean.namedBeanToAdvisor(Object next) Convert the following object sourced from calling getBean() on a name in the interceptorNames array to an Advisor or TargetSource.返回变量类型为Advisor的类型的infra.aop.framework中的方法修饰符和类型方法说明ProxyFactoryBean.freshAdvisorChain()Return an independent advisor chain.AdvisedSupport.getAdvisorsInternal()参数类型为Advisor的infra.aop.framework中的方法修饰符和类型方法说明voidAdvised.addAdvisor(int pos, Advisor advisor) Add an Advisor at the specified position in the chain.voidAdvised.addAdvisor(Advisor advisor) Add an advisor at the end of the advisor chain.voidAdvisedSupport.addAdvisor(int pos, Advisor advisor) voidAdvisedSupport.addAdvisor(Advisor advisor) (专用程序包) voidAdvisedSupport.addAdvisorInternal(int pos, Advisor advisor) voidAdvisedSupport.addAdvisors(Advisor... advisors) Add all of the given advisors to this proxy configuration.intReturn the index (from 0) of the given advisor, or -1 if no such advisor applies to this proxy.intbooleanAdvised.removeAdvisor(Advisor advisor) Remove the given advisor.booleanAdvisedSupport.removeAdvisor(Advisor advisor) booleanAdvised.replaceAdvisor(Advisor a, Advisor b) Replace the given advisor.booleanAdvisedSupport.replaceAdvisor(Advisor a, Advisor b) 类型变量类型为Advisor的infra.aop.framework中的方法参数修饰符和类型方法说明voidAdvisedSupport.addAdvisors(Collection<Advisor> advisors) Add all of the given advisors to this proxy configuration.protected voidAdvisedSupport.copyConfigurationFrom(AdvisedSupport other, TargetSource targetSource, List<Advisor> advisors) Copy the AOP configuration from the given AdvisedSupport object, but allow substitution of a fresh TargetSource and a given interceptor chain.参数类型为Advisor的infra.aop.framework中的构造器 -
infra.aop.framework.adapter中Advisor的使用
参数类型为Advisor的infra.aop.framework.adapter中的方法修饰符和类型方法说明AdvisorAdapter.getInterceptor(Advisor advisor) Return an AOP Alliance MethodInterceptor exposing the behavior of the given advice to an interception-based AOP framework.AfterReturningAdviceAdapter.getInterceptor(Advisor advisor) MethodBeforeAdviceAdapter.getInterceptor(Advisor advisor) ThrowsAdviceAdapter.getInterceptor(Advisor advisor) AdvisorAdapterRegistry.getInterceptors(Advisor advisor) Return an array of AOP Alliance MethodInterceptors to allow use of the given Advisor in an interception-based framework.DefaultAdvisorAdapterRegistry.getInterceptors(Advisor advisor) -
infra.aop.framework.autoproxy中Advisor的使用
修饰符和类型方法说明protected Advisor[]AbstractAutoProxyCreator.buildAdvisors(String beanName, Object[] specificInterceptors) Determine the advisors for the given bean, including the specific interceptors as well as the common interceptor, all adapted to the Advisor interface.private Advisor[]AbstractAutoProxyCreator.resolveInterceptorNames()Resolves the specified interceptor names to Advisor objects.返回变量类型为Advisor的类型的infra.aop.framework.autoproxy中的方法修饰符和类型方法说明AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(List<Advisor> candidateAdvisors, Class<?> beanClass, String beanName) Search the given candidate Advisors to find all Advisors that can apply to the specified bean.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors()Find all candidate Advisors to use in auto-proxying.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(Class<?> beanClass, String beanName) Find all eligible Advisors for auto-proxying this class.BeanFactoryAdvisorRetriever.retrieveAdvisorBeans()Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.AbstractAdvisorAutoProxyCreator.sortAdvisors(List<Advisor> advisors) Sort advisors based on ordering.类型变量类型为Advisor的infra.aop.framework.autoproxy中的方法参数修饰符和类型方法说明protected voidAbstractAdvisorAutoProxyCreator.extendAdvisors(List<Advisor> candidateAdvisors) Extension hook that subclasses can override to register additional Advisors, given the sorted Advisors obtained to date.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(List<Advisor> candidateAdvisors, Class<?> beanClass, String beanName) Search the given candidate Advisors to find all Advisors that can apply to the specified bean.AbstractAdvisorAutoProxyCreator.sortAdvisors(List<Advisor> advisors) Sort advisors based on ordering. -
infra.aop.interceptor中Advisor的使用
声明为Advisor的infra.aop.interceptor中的字段修饰符和类型字段说明static final AdvisorExposeInvocationInterceptor.ADVISORSingleton advisor for this class.返回Advisor的infra.aop.interceptor中的方法修饰符和类型方法说明static AdvisorExposeBeanNameAdvisors.createAdvisorIntroducingNamedBean(String beanName) Create a new advisor that will expose the given bean name, introducing the NamedBean interface to make the bean name accessible without forcing the target object to be aware of this IoC concept.static AdvisorExposeBeanNameAdvisors.createAdvisorWithoutIntroduction(String beanName) Create a new advisor that will expose the given bean name, with no introduction. -
infra.aop.support中Advisor的使用
实现Advisor的infra.aop.support中的类修饰符和类型类说明classAbstract BeanFactory-based PointcutAdvisor that allows for any Advice to be configured as reference to an Advice bean in a BeanFactory.classAbstract genericPointcutAdvisorthat allows for anyAdviceto be configured.classAbstract base class forPointcutAdvisorimplementations.classConcrete BeanFactory-based PointcutAdvisor that allows for any Advice to be configured as reference to an Advice bean in the BeanFactory, as well as the Pointcut to be configured through a bean property.classSimpleIntroductionAdvisorimplementation that by default applies to any class.classConvenient Pointcut-driven Advisor implementation.classConvenient class for name-match method pointcuts that hold an Advice, making them an Advisor.classConvenient class for regexp method pointcuts that hold an Advice, making them anAdvisor.classConvenient base class for Advisors that are also static pointcuts.返回变量类型为Advisor的类型的infra.aop.support中的方法修饰符和类型方法说明AopUtils.filterAdvisors(List<Advisor> candidateAdvisors, Class<?> clazz) Determine the sublist of thecandidateAdvisorslist that is applicable to the given class.参数类型为Advisor的infra.aop.support中的方法修饰符和类型方法说明static booleanCan the given advisor apply at all on the given class?static booleanCan the given advisor apply at all on the given class?类型变量类型为Advisor的infra.aop.support中的方法参数