Simon Hunt | 642bc45 | 2016-05-04 19:34:45 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Simon Hunt | 642bc45 | 2016-05-04 19:34:45 -0700 | [diff] [blame] | 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 | |
| 17 | package org.onosproject.ui.model; |
| 18 | |
| 19 | import org.onosproject.cluster.ClusterService; |
| 20 | import org.onosproject.mastership.MastershipService; |
| 21 | import org.onosproject.net.device.DeviceService; |
| 22 | import org.onosproject.net.flow.FlowRuleService; |
| 23 | import org.onosproject.net.host.HostService; |
| 24 | import org.onosproject.net.intent.IntentService; |
| 25 | import org.onosproject.net.link.LinkService; |
| 26 | import org.onosproject.net.region.RegionService; |
Simon Hunt | 4f4ffc3 | 2016-08-03 18:30:47 -0700 | [diff] [blame] | 27 | import org.onosproject.ui.UiTopoLayoutService; |
Simon Hunt | 642bc45 | 2016-05-04 19:34:45 -0700 | [diff] [blame] | 28 | |
| 29 | /** |
| 30 | * A bundle of services to pass to elements that might need a reference to them. |
| 31 | */ |
| 32 | public interface ServiceBundle { |
Simon Hunt | 4f4ffc3 | 2016-08-03 18:30:47 -0700 | [diff] [blame] | 33 | |
| 34 | /** |
| 35 | * Reference to a UI Topology Layout service implementation. |
| 36 | * |
| 37 | * @return layout service |
| 38 | */ |
| 39 | UiTopoLayoutService layout(); |
| 40 | |
Simon Hunt | 642bc45 | 2016-05-04 19:34:45 -0700 | [diff] [blame] | 41 | /** |
| 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 | } |