接口 AopProxyFactory
- 所有已知实现类:
DefaultAopProxyFactory
public interface AopProxyFactory
Interface to be implemented by factories that are able to create
AOP proxies based on
AdvisedSupport configuration objects.
Proxies should observe the following contract:
- They should implement all interfaces that the configuration indicates should be proxied.
- They should implement the
Advisedinterface. - They should implement the equals method to compare proxied interfaces, advice, and target.
- They should be serializable if all advisors and target are serializable.
- They should be thread-safe if advisors and target are thread-safe.
Proxies may or may not allow advice changes to be made.
If they do not permit advice changes (for example, because
the configuration was frozen) a proxy should throw an
AopConfigException on an attempted advice change.
- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Juergen Hoeller
-
方法概要
修饰符和类型方法说明createAopProxy(AdvisedSupport config) Create anAopProxyfor the given AOP configuration.
-
方法详细资料
-
createAopProxy
Create anAopProxyfor the given AOP configuration.- 参数:
config- the AOP configuration in the form of an AdvisedSupport object- 返回:
- the corresponding AOP proxy
- 抛出:
AopConfigException- if the configuration is invalid
-