01: // Copyright 2004, 2005 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // 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:
23: /**
24: * Usesd by the {@link hivemind.test.services.TestBuilderFactory} suite.
25: *
26: * @author Howard Lewis Ship
27: * @since 1.0
28: */
29: public class AutowireTarget implements Runnable {
30: private Log _log;
31:
32: private ErrorHandler _errorHandler;
33:
34: private ClassResolver _classResolver;
35:
36: private String _serviceId;
37:
38: private Messages _messages;
39:
40: private ErrorLog _errorLog;
41:
42: public ClassResolver getClassResolver() {
43: return _classResolver;
44: }
45:
46: public ErrorHandler getErrorHandler() {
47: return _errorHandler;
48: }
49:
50: public Log getLog() {
51: return _log;
52: }
53:
54: public Messages getMessages() {
55: return _messages;
56: }
57:
58: public String getServiceId() {
59: return _serviceId;
60: }
61:
62: public void setClassResolver(ClassResolver resolver) {
63: _classResolver = resolver;
64: }
65:
66: public void setErrorHandler(ErrorHandler handler) {
67: _errorHandler = handler;
68: }
69:
70: public void setLog(Log log) {
71: _log = log;
72: }
73:
74: public void setMessages(Messages messages) {
75: _messages = messages;
76: }
77:
78: public void setServiceId(String string) {
79: _serviceId = string;
80: }
81:
82: public void run() {
83: //
84: }
85:
86: public ErrorLog getErrorLog() {
87: return _errorLog;
88: }
89:
90: public void setErrorLog(ErrorLog errorLog) {
91: _errorLog = errorLog;
92: }
93: }
|