org.springframework.aop.framework
Interface AopProxy

All Known Implementing Classes:
Cglib2AopProxy, JdkDynamicAopProxy

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 for the given object.
 Object getProxy(ClassLoader classLoader)
          Create a new Proxy object for the given object.
 

Method Detail

getProxy

Object getProxy()
Create a new Proxy object for the given object. Uses the thread context class loader (if necessary for proxy creation).

See Also:
Thread.getContextClassLoader()

getProxy

Object getProxy(ClassLoader classLoader)
Create a new Proxy object for the given object. Uses the given class loader (if necessary for proxy creation).

Parameters:
classLoader - the class loader to use


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