blob: 6986cf79eb42d09e31fb87afc338ddba626564b5 [file] [log] [blame]
Simon Hunt642bc452016-05-04 19:34:45 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.ui.model;
18
19import org.onosproject.cluster.ClusterService;
20import org.onosproject.mastership.MastershipService;
21import org.onosproject.net.device.DeviceService;
22import org.onosproject.net.flow.FlowRuleService;
23import org.onosproject.net.host.HostService;
24import org.onosproject.net.intent.IntentService;
25import org.onosproject.net.link.LinkService;
26import org.onosproject.net.region.RegionService;
Simon Hunt4f4ffc32016-08-03 18:30:47 -070027import org.onosproject.ui.UiTopoLayoutService;
Simon Hunt642bc452016-05-04 19:34:45 -070028
29/**
30 * A bundle of services to pass to elements that might need a reference to them.
31 */
32public interface ServiceBundle {
Simon Hunt4f4ffc32016-08-03 18:30:47 -070033
34 /**
35 * Reference to a UI Topology Layout service implementation.
36 *
37 * @return layout service
38 */
39 UiTopoLayoutService layout();
40
Simon Hunt642bc452016-05-04 19:34:45 -070041 /**
42 * Reference to a cluster service implementation.
43 *
44 * @return cluster service
45 */
46 ClusterService cluster();
47
48 /**
49 * Reference to a mastership service implementation.
50 *
51 * @return mastership service
52 */
53 MastershipService mastership();
54
55 /**
56 * Reference to a region service implementation.
57 *
58 * @return region service
59 */
60 RegionService region();
61
62 /**
63 * Reference to a device service implementation.
64 *
65 * @return device service
66 */
67 DeviceService device();
68
69 /**
70 * Reference to a link service implementation.
71 *
72 * @return link service
73 */
74 LinkService link();
75
76 /**
77 * Reference to a host service implementation.
78 *
79 * @return host service
80 */
81 HostService host();
82
83 /**
84 * Reference to a intent service implementation.
85 *
86 * @return intent service
87 */
88 IntentService intent();
89
90 /**
91 * Reference to a flow service implementation.
92 *
93 * @return flow service
94 */
95 FlowRuleService flow();
96}