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
8 package org.opendaylight.md.controller.topology.lldp;
10 import org.opendaylight.controller.sal.binding.api.AbstractBindingAwareProvider;
11 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
12 import org.opendaylight.controller.sal.binding.api.NotificationProviderService;
13 import org.opendaylight.controller.sal.binding.api.data.DataProviderService;
14 import org.osgi.framework.BundleContext;
16 public class LLDPActivator extends AbstractBindingAwareProvider {
17 private static LLDPDiscoveryProvider provider = new LLDPDiscoveryProvider();
19 public void onSessionInitiated(final ProviderContext session) {
20 DataProviderService dataService = session.<DataProviderService>getSALService(DataProviderService.class);
21 provider.setDataService(dataService);
22 NotificationProviderService notificationService = session.<NotificationProviderService>getSALService(NotificationProviderService.class);
23 provider.setNotificationService(notificationService);
27 protected void stopImpl(final BundleContext context) {