Thomas Vachuska | 02aeb03 | 2015-01-06 22:36:30 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Foundation |
Thomas Vachuska | 02aeb03 | 2015-01-06 22:36:30 -0800 | [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 | package org.onosproject.app; |
| 17 | |
| 18 | import org.onosproject.core.Application; |
| 19 | import org.onosproject.core.ApplicationId; |
Changhoon Yoon | b856b81 | 2015-08-10 03:47:19 +0900 | [diff] [blame] | 20 | import org.onosproject.security.Permission; |
Thomas Vachuska | 02aeb03 | 2015-01-06 22:36:30 -0800 | [diff] [blame] | 21 | |
| 22 | import java.util.Set; |
| 23 | |
| 24 | /** |
| 25 | * Adapter for testing against application service. |
| 26 | */ |
| 27 | public class ApplicationServiceAdapter implements ApplicationService { |
| 28 | @Override |
| 29 | public Set<Application> getApplications() { |
| 30 | return null; |
| 31 | } |
| 32 | |
| 33 | @Override |
| 34 | public ApplicationId getId(String name) { |
| 35 | return null; |
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public Application getApplication(ApplicationId appId) { |
| 40 | return null; |
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | public ApplicationState getState(ApplicationId appId) { |
| 45 | return null; |
| 46 | } |
| 47 | |
| 48 | @Override |
| 49 | public Set<Permission> getPermissions(ApplicationId appId) { |
| 50 | return null; |
| 51 | } |
| 52 | |
| 53 | @Override |
Thomas Vachuska | c65dd71 | 2015-11-04 17:19:10 -0800 | [diff] [blame] | 54 | public void registerDeactivateHook(ApplicationId appId, Runnable hook) { |
| 55 | } |
| 56 | |
| 57 | @Override |
Thomas Vachuska | 02aeb03 | 2015-01-06 22:36:30 -0800 | [diff] [blame] | 58 | public void addListener(ApplicationListener listener) { |
| 59 | } |
| 60 | |
| 61 | @Override |
| 62 | public void removeListener(ApplicationListener listener) { |
| 63 | } |
| 64 | } |