站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

DefaultAopProxyFactory (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.aop.framework
Class DefaultAopProxyFactory

java.lang.Object
  extended by org.springframework.aop.framework.DefaultAopProxyFactory
All Implemented Interfaces:
AopProxyFactory

public class DefaultAopProxyFactory
extends Object
implements AopProxyFactory

Default AopProxyFactory implementation, creating either a CGLIB proxy or a JDK dynamic proxy.

Creates a CGLIB proxy if one the following is true for a given AdvisedSupport instance:

Note that the CGLIB library classes have to be present on the class path if an actual CGLIB proxy needs to be created.

In general, specify "proxyTargetClass" to enforce a CGLIB proxy, or specify one or more interfaces to use a JDK dynamic proxy.

Since:
12.03.2004
Author:
Rod Johnson, Juergen Hoeller
See Also:
ProxyConfig.setOptimize(boolean), ProxyConfig.setProxyTargetClass(boolean), AdvisedSupport.setInterfaces(java.lang.Class[])

Constructor Summary
DefaultAopProxyFactory()
           
 
Method Summary
 AopProxy createAopProxy(AdvisedSupport config)
          Create an AopProxy for the given AOP configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAopProxyFactory

public DefaultAopProxyFactory()
Method Detail

createAopProxy

public AopProxy createAopProxy(AdvisedSupport config)
                        throws AopConfigException
Description copied from interface: AopProxyFactory
Create an AopProxy for the given AOP configuration.

Specified by:
createAopProxy in interface AopProxyFactory
Parameters:
config - the AOP configuration in the form of an AdvisedSupport object
Returns:
the corresponding AOP proxy
Throws:
AopConfigException - if the configuration is invalid

The Spring Framework

Copyright © 2002-2007 The Spring Framework.