1 16 17 package org.springframework.beans.factory.xml; 18 19 import org.springframework.beans.IndexedTestBean; 20 import org.springframework.beans.TestBean; 21 22 28 class DerivedConstructorDependenciesBean extends ConstructorDependenciesBean { 29 30 boolean initialized; 31 boolean destroyed; 32 33 DerivedConstructorDependenciesBean(TestBean spouse1, TestBean spouse2, IndexedTestBean other) { 34 super(spouse1, spouse2, other); 35 } 36 37 private DerivedConstructorDependenciesBean(TestBean spouse1, Object spouse2, IndexedTestBean other) { 38 super(spouse1, null, other); 39 } 40 41 protected DerivedConstructorDependenciesBean(TestBean spouse1, TestBean spouse2, IndexedTestBean other, int age, int otherAge) { 42 super(spouse1, spouse2, other); 43 } 44 45 public DerivedConstructorDependenciesBean(TestBean spouse1, TestBean spouse2, IndexedTestBean other, int age, String name) { 46 super(spouse1, spouse2, other); 47 setAge(age); 48 setName(name); 49 } 50 51 private void init() { 52 this.initialized = true; 53 } 54 55 private void destroy() { 56 this.destroyed = true; 57 } 58 59 } 60 | Popular Tags |