Simon Hunt | f679c4e | 2016-04-01 17:02:24 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Simon Hunt | f679c4e | 2016-04-01 17:02:24 -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.impl.topo; |
| 18 | |
| 19 | import org.apache.felix.scr.annotations.Activate; |
| 20 | import org.apache.felix.scr.annotations.Component; |
| 21 | import org.apache.felix.scr.annotations.Deactivate; |
| 22 | import org.apache.felix.scr.annotations.Service; |
| 23 | import org.onosproject.ui.UiTopoLayoutService; |
| 24 | import org.onosproject.ui.model.topo.UiTopoLayout; |
| 25 | import org.slf4j.Logger; |
| 26 | import org.slf4j.LoggerFactory; |
| 27 | |
| 28 | import java.util.List; |
| 29 | |
| 30 | /** |
| 31 | * Manages the user interface topology layouts. |
| 32 | * Note that these layouts are persisted and distributed across the cluster. |
| 33 | */ |
| 34 | @Component(immediate = true) |
| 35 | @Service |
| 36 | public class UiTopoLayoutManager implements UiTopoLayoutService { |
| 37 | |
| 38 | // private static final ClassLoader CL = |
| 39 | // UiTopoLayoutManager.class.getClassLoader(); |
| 40 | |
| 41 | private final Logger log = LoggerFactory.getLogger(getClass()); |
| 42 | |
| 43 | @Activate |
| 44 | public void activate() { |
| 45 | // TODO: implement starting stuff |
| 46 | log.info("Started"); |
| 47 | } |
| 48 | |
| 49 | @Deactivate |
| 50 | public void deactivate() { |
| 51 | // TODO: implement stopping stuff |
| 52 | log.info("Stopped"); |
| 53 | } |
| 54 | |
| 55 | |
| 56 | @Override |
| 57 | public List<UiTopoLayout> getLayouts() { |
| 58 | // TODO: implement |
| 59 | return null; |
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public boolean addLayout(UiTopoLayout layout) { |
| 64 | // TODO: implement |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | @Override |
| 69 | public boolean removeLayout(UiTopoLayout layout) { |
| 70 | // TODO: implement |
| 71 | return false; |
| 72 | } |
| 73 | } |