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

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

Introduction

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

Prototype

public boolean isProxyTargetClass() 

Source Link

Document

Return whether to proxy the target class directly as well as any interfaces.

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());
}