spring-framework / org.springframework.aop.config / SimpleBeanFactoryAwareAspectInstanceFactory

SimpleBeanFactoryAwareAspectInstanceFactory

open class SimpleBeanFactoryAwareAspectInstanceFactory : AspectInstanceFactory, BeanFactoryAware

Implementation of AspectInstanceFactory that locates the aspect from the org.springframework.beans.factory.BeanFactory using a configured bean name.

Author
Rob Harrop

Author
Juergen Hoeller

Since
2.0

Constructors

<init>

SimpleBeanFactoryAwareAspectInstanceFactory()

Implementation of AspectInstanceFactory that locates the aspect from the org.springframework.beans.factory.BeanFactory using a configured bean name.

Functions

getAspectClassLoader

open fun getAspectClassLoader(): ClassLoader

getAspectInstance

open fun getAspectInstance(): Any

Look up the aspect bean from the BeanFactory and returns it.

getOrder

open fun getOrder(): Int

setAspectBeanName

open fun setAspectBeanName(aspectBeanName: String): Unit

Set the name of the aspect bean. This is the bean that is returned when calling #getAspectInstance().

setBeanFactory

open fun setBeanFactory(beanFactory: BeanFactory): Unit