public class DefaultAopProxyFactory extends Object implements AopProxyFactory, Serializable
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:
 
optimize flag is set
 proxyTargetClass flag is set
 In general, specify proxyTargetClass to enforce a CGLIB proxy,
 or specify one or more interfaces to use a JDK dynamic proxy.
ProxyConfig.setOptimize(boolean), 
ProxyConfig.setProxyTargetClass(boolean), 
AdvisedSupport.setInterfaces(java.lang.Class<?>...), 
Serialized Form| Constructor and Description | 
|---|
| DefaultAopProxyFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| AopProxy | createAopProxy(AdvisedSupport config)Create an  AopProxyfor the given AOP configuration. | 
public AopProxy createAopProxy(AdvisedSupport config) throws AopConfigException
AopProxyFactoryAopProxy for the given AOP configuration.createAopProxy in interface AopProxyFactoryconfig - the AOP configuration in the form of an
 AdvisedSupport objectAopConfigException - if the configuration is invalid