java.lang.Object | ||||
↳ | org.springframework.aop.framework.ProxyConfig | |||
↳ | org.springframework.aop.framework.AdvisedSupport | |||
↳ | org.springframework.aop.framework.ProxyCreatorSupport | |||
↳ | org.springframework.aop.aspectj.annotation.AspectJProxyFactory |
AspectJ-based proxy factory, allowing for programmatic building of proxies which include AspectJ aspects (code style as well Java 5 annotation style).
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.framework.AdvisedSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new AspectJProxyFactory.
| |||||||||||
Create a new AspectJProxyFactory.
| |||||||||||
Create a new
AspectJProxyFactory . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add the supplied aspect instance to the chain.
| |||||||||||
Add an aspect of the supplied type to the end of the advice chain.
| |||||||||||
Create a new proxy according to the settings in this factory.
| |||||||||||
Create a new proxy according to the settings in this factory.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.framework.ProxyCreatorSupport
| |||||||||||
From class
org.springframework.aop.framework.AdvisedSupport
| |||||||||||
From class
org.springframework.aop.framework.ProxyConfig
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.aop.TargetClassAware
| |||||||||||
From interface
org.springframework.aop.framework.Advised
|
Create a new AspectJProxyFactory.
Create a new AspectJProxyFactory.
Will proxy all interfaces that the given target implements.
target | the target object to be proxied |
---|
Create a new AspectJProxyFactory
.
No target, only interfaces. Must add interceptors.
Add the supplied aspect instance to the chain. The type of the aspect instance supplied must be a singleton aspect. True singleton lifecycle is not honoured when using this method - the caller is responsible for managing the lifecycle of any aspects added in this way.
aspectInstance | the AspectJ aspect instance |
---|
Add an aspect of the supplied type to the end of the advice chain.
aspectClass | the AspectJ aspect class |
---|
Create a new proxy according to the settings in this factory.
Can be called repeatedly. Effect will vary if we've added or removed interfaces. Can add and remove interceptors.
Uses the given class loader (if necessary for proxy creation).
classLoader | the class loader to create the proxy with |
---|
Create a new proxy according to the settings in this factory.
Can be called repeatedly. Effect will vary if we've added or removed interfaces. Can add and remove interceptors.
Uses a default class loader: Usually, the thread context class loader (if necessary for proxy creation).