title: spring parent child configuration (abstract bean)
body: <p>I have a question about spring's bean.</p>
  
  <p>There are parent class Parent with constructor (without any setters).</p>
  
  <pre><code>class abstract Parent{
      procected Something someth;
  
      public Parent(Object1 obj1 , Object2 obj2 , Object3 obj3){
          someth.setObj1(obj1);
          someth.setObj2(obj2);
          someth.setObj3(obj3);
      }
  }
  
  class Child extends Parent implements SoneInterface{
  
       public Parent(Object1 obj1 , Object2 obj2 , Object3 obj3){
            supper(obj1,obj2,obj3);
       }
  
       public void methodFormSoneInterface(){
            ....................
            someth.do();
       }
  }
  </code></pre>
  
  <p>Object1 obj1  - it the same object for any children's instance.
  Object2 obj2 , Object3 obj3  -can be bifferent for any instances </p>
  
  <p>If I had setter for parent (I can't change it) , I could declare abstract bean ,set  Object1 obj1 for it and after that I can use it as abstract bean (set only obj2 and obj3 reference/value).</p>
  
  <p>Is there any chance to configure in xml parent/abstract bean with obj1 param , any define right values (set only obj2 and obj3) for children?</p>
  
  <p>Thanks</p>