c3c3bfb11625a8c51ef018c6b696a6aef790fa7d
[moon.git] /
1 /*
2  * Copyright (c) 2014, 2015 Hewlett-Packard Development Company, L.P. 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
9 package org.opendaylight.aaa.keystone;
10
11 import org.apache.felix.dm.DependencyActivatorBase;
12 import org.apache.felix.dm.DependencyManager;
13 import org.opendaylight.aaa.api.TokenAuth;
14 import org.osgi.framework.BundleContext;
15
16 /**
17  * An activator for {@link KeystoneTokenAuth}.
18  *
19  * @author liemmn
20  *
21  */
22 public class Activator extends DependencyActivatorBase {
23
24     @Override
25     public void init(BundleContext context, DependencyManager manager) throws Exception {
26         manager.add(createComponent().setInterface(new String[] { TokenAuth.class.getName() }, null)
27                                      .setImplementation(KeystoneTokenAuth.class));
28     }
29
30     @Override
31     public void destroy(BundleContext context, DependencyManager manager) throws Exception {
32     }
33
34 }