1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.backsource.amsterdam.service.protocol;
21 import org.backsource.amsterdam.service.ServiceInvoker;
22 import org.backsource.amsterdam.service.ServiceException;
23 /***
24 * Support imlementation to be used by subclasses.
25 *
26 * @author <a href="mailto:pra@mogul.com">Peter Antman</a>
27 * @version $Revision: 1.1.1.1 $
28 */
29
30 public abstract class ProtocolHandlerFactorySupport implements ProtocolHandlerFactory {
31 protected ServiceInvoker invoker = null;
32 public ProtocolHandlerFactorySupport (){
33
34 }
35
36 public void setServiceInvoker(ServiceInvoker invoker) {
37 this.invoker = invoker;
38 }
39 public ServiceInvoker getServiceInvoker() {
40 return invoker;
41 }
42 public abstract String getSupportedProtocol();
43 public abstract void initialize(ProtocolConfigure config);
44 public abstract ProtocolHandler getProtocolHandler() throws ServiceException;
45
46
47 public void init() throws Exception {}
48 public void start() throws Exception {}
49 public void stop() throws Exception {}
50 public void destroy() throws Exception {}
51 }