Class BeanFactoryAspectInstanceFactory

  • java.lang.Object
    • org.springframework.aop.aspectj.annotation.BeanFactoryAspectInstanceFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.ClassLoader getAspectClassLoader()
      Expose the aspect class loader that this factory uses.
      java.lang.Object getAspectCreationMutex()
      Return the best possible creation mutex for this factory.
      java.lang.Object getAspectInstance()
      Create an instance of this factory's aspect.
      AspectMetadata getAspectMetadata()
      Return the AspectJ AspectMetadata for this factory's aspect.
      int getOrder()
      Determine the order for this factory's target aspect, either an instance-specific order expressed through implementing the Ordered interface (only checked for singleton beans), or an order expressed through the Order annotation at the class level.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BeanFactoryAspectInstanceFactory

        public BeanFactoryAspectInstanceFactory(BeanFactory beanFactory,
                                                java.lang.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 - name of the bean
      • BeanFactoryAspectInstanceFactory

        public BeanFactoryAspectInstanceFactory(BeanFactory beanFactory,
                                                java.lang.String name,
                                                java.lang.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)