blob: 0278ccd6e75cb1d469d2180812572ec5a4351702 [file] [log] [blame]
Thomas Vachuska33601602014-11-19 03:32:15 -08001/*
2 * Copyright 2014 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 */
16package org.onlab.osgi;
17
18import org.osgi.framework.Bundle;
19import org.osgi.framework.BundleContext;
20import org.osgi.framework.ServiceReference;
21import org.osgi.service.component.ComponentContext;
22import org.osgi.service.component.ComponentInstance;
23
24import java.util.Dictionary;
25
26/**
27 * Adapter implementation of OSGI component context.
28 */
29public class ComponentContextAdapter implements ComponentContext {
30 @Override
31 public Dictionary getProperties() {
32 return null;
33 }
34
35 @Override
36 public Object locateService(String name) {
37 return null;
38 }
39
40 @Override
41 public Object locateService(String name, ServiceReference reference) {
42 return null;
43 }
44
45 @Override
46 public Object[] locateServices(String name) {
47 return new Object[0];
48 }
49
50 @Override
51 public BundleContext getBundleContext() {
52 return null;
53 }
54
55 @Override
56 public Bundle getUsingBundle() {
57 return null;
58 }
59
60 @Override
61 public ComponentInstance getComponentInstance() {
62 return null;
63 }
64
65 @Override
66 public void enableComponent(String name) {
67
68 }
69
70 @Override
71 public void disableComponent(String name) {
72
73 }
74
75 @Override
76 public ServiceReference getServiceReference() {
77 return null;
78 }
79}