title: CGLib proxy and none empty constructor
body: <p>Let's consider that I have some Class A which has property of class B.</p>
  
  <pre><code>public class ClassA{
  
  private ClassB classB; 
  
  public ClassA(ClassB classB){
   this.classB = classB;
  }
  
   //some methods ommitted.
  }
  </code></pre>
  
  <p>No I have CGLIB proxy:</p>
  
  <pre><code>public class CGLibProxy  implements MethodInterceptor{
  
      @Override
      public Object intercept(Object object, Method method, Object[] args,
              MethodProxy methodProxy) throws Throwable {
  
      if (method.getName().startsWith("print")){
          System.out.println("We will not run any method started with print"); 
          return null;
      }
          else
          return methodProxy.invokeSuper(object, args);
      }
  }
  </code></pre>
  
  <p>Now, When I use <code>CGLib</code> for ClassA , proxy creates ClassA instance.</p>
  
  <p>My question is how can I pass classB parameter to this proxy, because as far As I understand CGLib will run empty constructor for ClassA?</p>