Example usage for org.springframework.cglib.proxy Enhancer setInterceptDuringConstruction

List of usage examples for org.springframework.cglib.proxy Enhancer setInterceptDuringConstruction

Introduction

In this page you can find the example usage for org.springframework.cglib.proxy Enhancer setInterceptDuringConstruction.

Prototype

public void setInterceptDuringConstruction(boolean interceptDuringConstruction) 

Source Link

Document

Set whether methods called from within the proxy's constructer will be intercepted.

Usage

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

protected Object createProxyClassAndInstance(Enhancer enhancer, Callback[] callbacks) {
    enhancer.setInterceptDuringConstruction(false);
    enhancer.setCallbacks(callbacks);//from  w w  w  .  ja  v a 2s . c om
    return (this.constructorArgs != null && this.constructorArgTypes != null
            ? enhancer.create(this.constructorArgTypes, this.constructorArgs)
            : enhancer.create());
}