KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hivemind > test > services > ConstructorAutowireTarget


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

15 package hivemind.test.services;
16
17 import java.io.Serializable JavaDoc;
18 import java.util.List JavaDoc;
19 import java.util.Set JavaDoc;
20
21 import org.apache.hivemind.ClassResolver;
22 import org.apache.hivemind.impl.DefaultClassResolver;
23
24 /**
25  * Used to test autowiring of constructor parameters by the BuilderFactory.
26  *
27  * @author Knut Wannheden
28  */

29 public class ConstructorAutowireTarget
30 {
31     private StringHolder _stringHolder;
32
33     private ClassResolver _classResolver;
34
35     public ConstructorAutowireTarget(StringHolder holder)
36     {
37         this(holder, new DefaultClassResolver());
38     }
39
40     public ConstructorAutowireTarget(StringHolder holder, ClassResolver classResolver)
41     {
42         _stringHolder = holder;
43         _classResolver = classResolver;
44     }
45
46     public ConstructorAutowireTarget(int dummy)
47     {
48     }
49
50     public ConstructorAutowireTarget(Serializable JavaDoc dummy1, Serializable JavaDoc dummy2, Serializable JavaDoc dummy3)
51     {
52     }
53
54     public ConstructorAutowireTarget(Comparable JavaDoc dummy1, List JavaDoc dummy2, Set JavaDoc dummy3)
55     {
56     }
57
58     public StringHolder getStringHolder()
59     {
60         return _stringHolder;
61     }
62
63     public ClassResolver getClassResolver()
64     {
65         return _classResolver;
66     }
67 }
Popular Tags