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

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

Creates a CGLIB proxy if one the following is true:

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:
Cglib2AopProxy, JdkDynamicAopProxy, ProxyConfig.setOptimize(boolean), ProxyConfig.setProxyTargetClass(boolean), AdvisedSupport.setInterfaces(java.lang.Class[])

Constructor Summary
DefaultAopProxyFactory()
           
 
Method Summary
 AopProxy createAopProxy(AdvisedSupport advisedSupport)
          Return an AopProxy for the given AdvisedSupport object.
 
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 advisedSupport)
                        throws AopConfigException
Description copied from interface: AopProxyFactory
Return an AopProxy for the given AdvisedSupport object.

Specified by:
createAopProxy in interface AopProxyFactory
Parameters:
advisedSupport - the AOP configuration
Returns:
an AOP proxy
Throws:
AopConfigException - if the configuration is invalid


Copyright (c) 2002-2006 The Spring Framework Project.