类 BeanFactoryAspectInstanceFactory

java.lang.Object
infra.aop.aspectj.annotation.BeanFactoryAspectInstanceFactory
所有已实现的接口:
MetadataAwareAspectInstanceFactory, AspectInstanceFactory, infra.core.Ordered, Serializable
直接已知子类:
PrototypeAspectInstanceFactory

public class BeanFactoryAspectInstanceFactory extends Object implements MetadataAwareAspectInstanceFactory, Serializable
AspectInstanceFactory implementation backed by a Framework BeanFactory.

Note that this may instantiate multiple times if using a prototype, which probably won't give the semantics you expect. Use a LazySingletonAspectInstanceFactoryDecorator to wrap this to ensure only one new aspect comes back.

从以下版本开始:
4.0
作者:
Rod Johnson, Juergen Hoeller, Harry Yang
另请参阅:
  • 字段详细资料

    • beanFactory

      private final infra.beans.factory.BeanFactory beanFactory
    • name

      private final String name
    • aspectMetadata

      private final AspectMetadata aspectMetadata
  • 构造器详细资料

    • BeanFactoryAspectInstanceFactory

      public BeanFactoryAspectInstanceFactory(infra.beans.factory.BeanFactory beanFactory, String name)
      Create a BeanFactoryAspectInstanceFactory. AspectJ will be called to introspect to create AJType metadata using the type returned for the given bean name from the BeanFactory.
      参数:
      beanFactory - the BeanFactory to obtain instance(s) from
      name - the name of the bean
    • BeanFactoryAspectInstanceFactory

      public BeanFactoryAspectInstanceFactory(infra.beans.factory.BeanFactory beanFactory, String name, @Nullable Class<?> type)
      Create a BeanFactoryAspectInstanceFactory, providing a type that AspectJ should introspect to create AJType metadata. Use if the BeanFactory may consider the type to be a subclass (as when using CGLIB), and the information should relate to a superclass.
      参数:
      beanFactory - the BeanFactory to obtain instance(s) from
      name - the name of the bean
      type - the type that should be introspected by AspectJ (null indicates resolution through BeanFactory.getType(java.lang.String) via the bean name)
  • 方法详细资料