Example usage for org.springframework.aop.framework AopProxy getProxy

List of usage examples for org.springframework.aop.framework AopProxy getProxy

Introduction

In this page you can find the example usage for org.springframework.aop.framework AopProxy getProxy.

Prototype

Object getProxy(@Nullable ClassLoader classLoader);

Source Link

Document

Create a new proxy object.

Usage

From source file:org.springframework.aop.framework.ProxyFactoryBean.java

/**
 * Return the proxy object to expose.//www .  ja va  2s  . c o  m
 * <p>The default implementation uses a {@code getProxy} call with
 * the factory's bean class loader. Can be overridden to specify a
 * custom class loader.
 * @param aopProxy the prepared AopProxy instance to get the proxy from
 * @return the proxy object to expose
 * @see AopProxy#getProxy(ClassLoader)
 */
protected Object getProxy(AopProxy aopProxy) {
    return aopProxy.getProxy(this.proxyClassLoader);
}