blob: a8959df6ada4d11aee23fead7f700bb26d078178 [file] [log] [blame]
Simon Huntf679c4e2016-04-01 17:02:24 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Simon Huntf679c4e2016-04-01 17:02:24 -07003 *
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.impl.topo;
18
19import org.apache.felix.scr.annotations.Activate;
20import org.apache.felix.scr.annotations.Component;
21import org.apache.felix.scr.annotations.Deactivate;
22import org.apache.felix.scr.annotations.Service;
23import org.onosproject.ui.UiTopoLayoutService;
24import org.onosproject.ui.model.topo.UiTopoLayout;
25import org.slf4j.Logger;
26import org.slf4j.LoggerFactory;
27
28import 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
36public 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}