BUG-113: convert PCEP to use activators
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / BundleActivator.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.protocol.pcep.impl;
9
10 import org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderActivator;
11 import org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderContext;
12 import org.opendaylight.protocol.pcep.spi.osgi.AbstractOSGiPCEPExtensionProviderActivator;
13
14 public final class BundleActivator extends AbstractOSGiPCEPExtensionProviderActivator {
15         private final PCEPExtensionProviderActivator activator = new Activator();
16
17         @Override
18         public void start(final PCEPExtensionProviderContext context) throws Exception {
19                 activator.start(context);
20         }
21
22         @Override
23         public void stop() throws Exception {
24                 activator.stop();
25         }
26 }