blob: 61cf7219943045f2c1f9c9bad21b50f6e9797968 [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;
27
28/**
29 * A bundle of services to pass to elements that might need a reference to them.
30 */
31public interface ServiceBundle {
32 /**
33 * Reference to a cluster service implementation.
34 *
35 * @return cluster service
36 */
37 ClusterService cluster();
38
39 /**
40 * Reference to a mastership service implementation.
41 *
42 * @return mastership service
43 */
44 MastershipService mastership();
45
46 /**
47 * Reference to a region service implementation.
48 *
49 * @return region service
50 */
51 RegionService region();
52
53 /**
54 * Reference to a device service implementation.
55 *
56 * @return device service
57 */
58 DeviceService device();
59
60 /**
61 * Reference to a link service implementation.
62 *
63 * @return link service
64 */
65 LinkService link();
66
67 /**
68 * Reference to a host service implementation.
69 *
70 * @return host service
71 */
72 HostService host();
73
74 /**
75 * Reference to a intent service implementation.
76 *
77 * @return intent service
78 */
79 IntentService intent();
80
81 /**
82 * Reference to a flow service implementation.
83 *
84 * @return flow service
85 */
86 FlowRuleService flow();
87}