接口的使用
org.springframework.aop.aspectj.AspectInstanceFactory
使用AspectInstanceFactory的程序包 程序包 说明 org.springframework.aop.aspectj AspectJ integration package.org.springframework.aop.aspectj.annotation Classes enabling AspectJ 5 @Annotated classes to be used in Spring AOP.org.springframework.aop.config Support package for declarative AOP configuration, with XML schema being the primary configuration format.org.springframework.aop.aspectj中AspectInstanceFactory的使用
实现AspectInstanceFactory的org.springframework.aop.aspectj中的类 修饰符和类型 类 说明 classSimpleAspectInstanceFactoryImplementation ofAspectInstanceFactorythat creates a new instance of the specified aspect class for everySimpleAspectInstanceFactory.getAspectInstance()call.classSingletonAspectInstanceFactoryImplementation ofAspectInstanceFactorythat is backed by a specified singleton object, returning the same instance for everySingletonAspectInstanceFactory.getAspectInstance()call.返回AspectInstanceFactory的org.springframework.aop.aspectj中的方法 修饰符和类型 方法 说明 AspectInstanceFactoryAbstractAspectJAdvice. getAspectInstanceFactory()Return the factory for aspect instances.参数类型为AspectInstanceFactory的org.springframework.aop.aspectj中的构造器 构造器 说明 AbstractAspectJAdvice(Method aspectJAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aspectInstanceFactory)Create a new AbstractAspectJAdvice for the given advice method.AspectJAfterAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)AspectJAfterReturningAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)AspectJAfterThrowingAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)AspectJAroundAdvice(Method aspectJAroundAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)AspectJMethodBeforeAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)org.springframework.aop.aspectj.annotation中AspectInstanceFactory的使用
org.springframework.aop.aspectj.annotation中AspectInstanceFactory的子接口 修饰符和类型 接口 说明 interfaceMetadataAwareAspectInstanceFactorySubinterface ofAspectInstanceFactorythat returnsAspectMetadataassociated with AspectJ-annotated classes.实现AspectInstanceFactory的org.springframework.aop.aspectj.annotation中的类 修饰符和类型 类 说明 classBeanFactoryAspectInstanceFactoryAspectInstanceFactoryimplementation backed by a SpringBeanFactory.classLazySingletonAspectInstanceFactoryDecoratorDecorator to cause aMetadataAwareAspectInstanceFactoryto instantiate only once.classPrototypeAspectInstanceFactoryAspectInstanceFactorybacked by aBeanFactory-provided prototype, enforcing prototype semantics.classSimpleMetadataAwareAspectInstanceFactoryImplementation ofMetadataAwareAspectInstanceFactorythat creates a new instance of the specified aspect class for everySimpleAspectInstanceFactory.getAspectInstance()call.classSingletonMetadataAwareAspectInstanceFactoryImplementation ofMetadataAwareAspectInstanceFactorythat is backed by a specified singleton object, returning the same instance for everySingletonAspectInstanceFactory.getAspectInstance()call.org.springframework.aop.config中AspectInstanceFactory的使用
实现AspectInstanceFactory的org.springframework.aop.config中的类 修饰符和类型 类 说明 classSimpleBeanFactoryAwareAspectInstanceFactoryImplementation ofAspectInstanceFactorythat locates the aspect from theBeanFactoryusing a configured bean name.