1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.ksb.messaging.serviceconnectors;
18
19 import org.kuali.rice.ksb.messaging.ServiceInfo;
20 import org.kuali.rice.ksb.messaging.bam.BAMClientProxy;
21 import org.kuali.rice.ksb.service.KSBServiceLocator;
22
23
24
25
26
27
28 public class BusLocalConnector extends AbstractServiceConnector {
29
30 public BusLocalConnector(final ServiceInfo serviceInfo) {
31 super(serviceInfo);
32 }
33
34 private Object getServiceProxy(Object service) {
35 return BAMClientProxy.wrap(service, getServiceInfo());
36 }
37
38 public Object getService() {
39 return getServiceProxy(KSBServiceLocator.getServiceDeployer().getLocalService(getServiceInfo().getQname()));
40 }
41 }