KickJava   Java API By Example, From Geeks To Geeks.

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


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 org.apache.commons.logging.Log;
18 import org.apache.hivemind.ClassResolver;
19 import org.apache.hivemind.ErrorHandler;
20 import org.apache.hivemind.ErrorLog;
21 import org.apache.hivemind.Messages;
22 import org.apache.hivemind.service.Autowiring;
23
24 /**
25  * Target for testing the {@link Autowiring} service.
26  *
27  * @author Howard Lewis Ship
28  * @since 1.0
29  */

30 public class AutowireTarget implements Runnable JavaDoc
31 {
32     private Log _log;
33
34     private ErrorHandler _errorHandler;
35
36     private ClassResolver _classResolver;
37
38     private String JavaDoc _serviceId;
39
40     private Messages _messages;
41
42     private ErrorLog _errorLog;
43
44     public ClassResolver getClassResolver()
45     {
46         return _classResolver;
47     }
48
49     public ErrorHandler getErrorHandler()
50     {
51         return _errorHandler;
52     }
53
54     public Log getLog()
55     {
56         return _log;
57     }
58
59     public Messages getMessages()
60     {
61         return _messages;
62     }
63
64     public String JavaDoc getServiceId()
65     {
66         return _serviceId;
67     }
68
69     public void setClassResolver(ClassResolver resolver)
70     {
71         _classResolver = resolver;
72     }
73
74     public void setErrorHandler(ErrorHandler handler)
75     {
76         _errorHandler = handler;
77     }
78
79     public void setLog(Log log)
80     {
81         _log = log;
82     }
83
84     public void setMessages(Messages messages)
85     {
86         _messages = messages;
87     }
88
89     public void setServiceId(String JavaDoc string)
90     {
91         _serviceId = string;
92     }
93
94     public void run()
95     {
96         //
97
}
98
99     public ErrorLog getErrorLog()
100     {
101         return _errorLog;
102     }
103
104     public void setErrorLog(ErrorLog errorLog)
105     {
106         _errorLog = errorLog;
107     }
108 }
Popular Tags