Example usage for org.springframework.aop.aspectj.annotation AnnotationAwareAspectJAutoProxyCreator setProxyTargetClass

List of usage examples for org.springframework.aop.aspectj.annotation AnnotationAwareAspectJAutoProxyCreator setProxyTargetClass

Introduction

In this page you can find the example usage for org.springframework.aop.aspectj.annotation AnnotationAwareAspectJAutoProxyCreator setProxyTargetClass.

Prototype

public void setProxyTargetClass(boolean proxyTargetClass) 

Source Link

Document

Set whether to proxy the target class directly, instead of just proxying specific interfaces.

Usage

From source file:org.beast.project.template.config.AOPConfig.java

@Bean
public AnnotationAwareAspectJAutoProxyCreator autoProxy() {
    AnnotationAwareAspectJAutoProxyCreator aop = new AnnotationAwareAspectJAutoProxyCreator();
    aop.setProxyTargetClass(true);
    return aop;/*ww w.j a  va  2  s.  co m*/
}