接口的使用
cn.taketoday.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.
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.
-
cn.taketoday.aop中Advisor的使用
修饰符和类型接口说明interfaceSuperinterface for advisors that perform one or more AOP introductions.interfaceSuperinterface for all Advisors that are driven by a pointcut. -
cn.taketoday.aop.aspectj中Advisor的使用
修饰符和类型接口说明interfaceInterface to be implemented by Framework AOP Advisors wrapping AspectJ aspects that may have a lazy initialization strategy.修饰符和类型类说明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的cn.taketoday.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.static booleanAspectJAopUtils.isBeforeAdvice(Advisor anAdvisor) Returntrueif the advisor is a form of before advice.类型变量类型为Advisor的cn.taketoday.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. -
cn.taketoday.aop.aspectj.annotation中Advisor的使用
修饰符和类型类说明protected static classSynthetic advisor that instantiates the aspect.修饰符和类型方法说明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) 返回变量类型为Advisor的类型的cn.taketoday.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) -
cn.taketoday.aop.aspectj.autoproxy中Advisor的使用
返回变量类型为Advisor的类型的cn.taketoday.aop.aspectj.autoproxy中的方法修饰符和类型方法说明AspectJAwareAdvisorAutoProxyCreator.sortAdvisors(List<Advisor> advisors) Sort the suppliedAdvisorinstances according to AspectJ precedence.类型变量类型为Advisor的cn.taketoday.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. -
cn.taketoday.aop.framework中Advisor的使用
修饰符和类型字段说明protected AdvisorAbstractAdvisingBeanPostProcessor.advisorstatic final Advisor[]Advised.EMPTY_ADVISORS修饰符和类型方法说明Advisor[]Advised.getAdvisors()Return the advisors applying to this proxy.final Advisor[]AdvisedSupport.getAdvisors()返回变量类型为Advisor的类型的cn.taketoday.aop.framework中的方法参数类型为Advisor的cn.taketoday.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.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的cn.taketoday.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. -
cn.taketoday.aop.framework.adapter中Advisor的使用
修饰符和类型方法说明AdvisorAdapter.getInterceptor(Advisor advisor) Return an AOP Alliance MethodInterceptor exposing the behavior of the given advice to an interception-based AOP framework.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) -
cn.taketoday.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.返回变量类型为Advisor的类型的cn.taketoday.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的cn.taketoday.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. -
cn.taketoday.aop.interceptor中Advisor的使用
修饰符和类型字段说明static final AdvisorExposeInvocationInterceptor.ADVISORSingleton advisor for this class.修饰符和类型方法说明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. -
cn.taketoday.aop.support中Advisor的使用
修饰符和类型类说明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的类型的cn.taketoday.aop.support中的方法修饰符和类型方法说明AopUtils.filterAdvisors(List<Advisor> candidateAdvisors, Class<?> clazz) Determine the sublist of thecandidateAdvisorslist that is applicable to the given class.参数类型为Advisor的cn.taketoday.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的cn.taketoday.aop.support中的方法参数