Example usage for org.springframework.aop.framework ProxyConfig isExposeProxy

List of usage examples for org.springframework.aop.framework ProxyConfig isExposeProxy

Introduction

In this page you can find the example usage for org.springframework.aop.framework ProxyConfig isExposeProxy.

Prototype

public boolean isExposeProxy() 

Source Link

Document

Return whether the AOP proxy will expose the AOP proxy for each invocation.

Usage

From source file:org.springframework.aop.aspectj.autoproxy.AspectJAutoProxyCreatorTests.java

@Test
public void testForceProxyTargetClass() {
    ClassPathXmlApplicationContext bf = newContext("aspectsWithCGLIB.xml");

    ProxyConfig pc = (ProxyConfig) bf.getBean(AopConfigUtils.AUTO_PROXY_CREATOR_BEAN_NAME);
    assertTrue("should be proxying classes", pc.isProxyTargetClass());
    assertTrue("should expose proxy", pc.isExposeProxy());
}