Top Description Methods
org.springframework.aop.framework

public Interface AopProxy

Known Direct Implementers
org.springframework.aop.framework.CglibAopProxy, org.springframework.aop.framework.JdkDynamicAopProxy
Imports
org.springframework.lang.Nullable

Delegate interface for a configured AOP proxy, allowing for the creation of actual proxy objects.

Out-of-the-box implementations are available for JDK dynamic proxies and for CGLIB proxies, as applied by DefaultAopProxyFactory.

Authors
Rod Johnson, Juergen Hoeller
See Also
DefaultAopProxyFactory

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the new proxy object (never null)
getProxy
()

Create a new proxy object.

public Object

Returns:

the new proxy object (never null)
getProxy
(ClassLoader
the class loader to create the proxy with (or null for the low-level proxy facility's default)
classLoader
)

Create a new proxy object.

public Class<?>

Returns:

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

Determine the proxy class.

Method Detail

getProxyback to summary
public Object getProxy()

Create a new proxy object.

Uses the AopProxy's default class loader (if necessary for proxy creation): usually, the thread context class loader.

Returns:Object

the new proxy object (never null)

See Also
Thread#getContextClassLoader()
getProxyback to summary
public 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:ClassLoader

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

Returns:Object

the new proxy object (never null)

getProxyClassback to summary
public Class<?> getProxyClass(ClassLoader classLoader)

Determine the proxy class.

Parameters
classLoader:ClassLoader

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

Returns:Class<?>

the proxy class

Since
6.0