| java.lang.Object | |
| ↳ | org.springframework.aop.aspectj.annotation.BeanFactoryAspectInstanceFactory |
Known Direct Subclasses
|
AspectInstanceFactory implementation
backed by a Spring 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.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.core.Ordered
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a BeanFactoryAspectInstanceFactory.
| |||||||||||
Create a BeanFactoryAspectInstanceFactory, providing a type that AspectJ should
introspect to create AJType metadata.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Expose the aspect class loader that this factory uses.
| |||||||||||
Create an instance of this factory's aspect.
| |||||||||||
Return the AspectJ AspectMetadata for this factory's aspect.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.aop.aspectj.AspectInstanceFactory
| |||||||||||
From interface
org.springframework.aop.aspectj.annotation.MetadataAwareAspectInstanceFactory
| |||||||||||
From interface
org.springframework.core.Ordered
| |||||||||||
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 | BeanFactory to obtain instance(s) from |
|---|---|
| name | name of the bean |
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 | BeanFactory to obtain instance(s) from |
|---|---|
| name | the name of the bean |
| type | the type that should be introspected by AspectJ |
Expose the aspect class loader that this factory uses.
null)
Create an instance of this factory's aspect.
null)
Return the AspectJ AspectMetadata for this factory's aspect.