public class

DefaultAopProxyFactory

extends Object
implements Serializable AopProxyFactory
java.lang.Object
   ↳ org.springframework.aop.framework.DefaultAopProxyFactory

Class Overview

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:

  • the "optimize" flag is set
  • the "proxyTargetClass" flag is set
  • no proxy interfaces have been specified

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.

Summary

Public Constructors
DefaultAopProxyFactory()
Public Methods
AopProxy createAopProxy(AdvisedSupport config)
Create an AopProxy for the given AOP configuration.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.aop.framework.AopProxyFactory

Public Constructors

public DefaultAopProxyFactory ()

Public Methods

public AopProxy createAopProxy (AdvisedSupport config)

Create an AopProxy for the given AOP configuration.

Parameters
config the AOP configuration in the form of an AdvisedSupport object
Returns
  • the corresponding AOP proxy