2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.northbound.bundlescanner.internal;
11 import org.apache.felix.dm.Component;
12 import org.opendaylight.controller.northbound.bundlescanner.IBundleScanService;
13 import org.opendaylight.controller.sal.core.ComponentActivatorAbstractBase;
16 * The activator registers the BundleScanner.
18 public class Activator extends ComponentActivatorAbstractBase {
21 protected void init() {
25 protected void destroy() {
29 protected Object[] getGlobalImplementations() {
30 return new Object[] { BundleScanServiceImpl.class };
34 protected void configureGlobalInstance(Component c, Object imp) {
35 if (!imp.equals(BundleScanServiceImpl.class)) return;
38 new String[] { IBundleScanService.class.getName() },