1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.ksb.impl.registry.diff;
17
18 import java.util.Collections;
19 import java.util.List;
20 import java.util.Map;
21
22 import org.kuali.rice.ksb.api.registry.ServiceInfo;
23 import org.kuali.rice.ksb.impl.bus.LocalService;
24
25
26
27
28
29
30
31 public class LocalServicesDiff {
32
33 private final List<ServiceInfo> servicesToRemoveFromRegistry;
34 private final List<LocalService> localServicesToPublish;
35 private final Map<LocalService, ServiceInfo> localServicesToUpdate;
36
37 public LocalServicesDiff(List<ServiceInfo> servicesToRemoveFromRegistry,
38 List<LocalService> localServicesToPublish,
39 Map<LocalService, ServiceInfo> localServicesToUpdate) {
40 this.servicesToRemoveFromRegistry = servicesToRemoveFromRegistry == null ? Collections.<ServiceInfo>emptyList() : servicesToRemoveFromRegistry;
41 this.localServicesToPublish = localServicesToPublish == null ? Collections.<LocalService>emptyList() : localServicesToPublish;
42 this.localServicesToUpdate = localServicesToUpdate == null ? Collections.<LocalService, ServiceInfo>emptyMap() : localServicesToUpdate;
43 }
44
45 public List<ServiceInfo> getServicesToRemoveFromRegistry() {
46 return this.servicesToRemoveFromRegistry;
47 }
48
49 public List<LocalService> getLocalServicesToPublish() {
50 return this.localServicesToPublish;
51 }
52
53 public Map<LocalService, ServiceInfo> getLocalServicesToUpdate() {
54 return this.localServicesToUpdate;
55 }
56
57 }