KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > beans > factory > xml > DerivedConstructorDependenciesBean


1 /*
2  * Copyright 2002-2005 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.springframework.beans.factory.xml;
18
19 import org.springframework.beans.IndexedTestBean;
20 import org.springframework.beans.TestBean;
21
22 /**
23  * Simple bean used to check constructor dependency checking.
24  *
25  * @author Juergen Hoeller
26  * @since 09.11.2003
27  */

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 JavaDoc 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 JavaDoc 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