org.springframework.aop.framework
Interface AopProxy

All Known Implementing Classes:
Cglib2AopProxy, JdkDynamicAopProxy, ProxyFactory

public interface AopProxy

Strategy interface for proxy creation. Out-of-the-box implementations are available for JDK dynamic proxies and CGLIB.

Author:
Rod Johnson
See Also:
JdkDynamicAopProxy, Cglib2AopProxy

Method Summary
 Object getProxy()
          Create a new proxy object.
 Object getProxy(ClassLoader classLoader)
          Create a new proxy object.
 

Method Detail

getProxy

Object getProxy()
Create a new proxy object.

Uses the most optimal default class loader (if necessary for proxy creation): usually, the thread context class loader.

See Also:
Thread.getContextClassLoader()

getProxy

Object getProxy(ClassLoader classLoader)
Create a new proxy object.

Uses the given class loader (if necessary for proxy creation). null will simply be passed down and thus lead to the low-level proxy facility's default, which is usually different from the default chosen by the AopProxy implementation's getProxy method.

Parameters:
classLoader - the class loader to create the proxy with (or null for the low-level proxy facility's default)


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