2 * Copyright (c) 2014, 2015 Hewlett-Packard Development Company, L.P. 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.aaa.keystone;
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;
17 * An activator for {@link KeystoneTokenAuth}.
22 public class Activator extends DependencyActivatorBase {
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));
31 public void destroy(BundleContext context, DependencyManager manager) throws Exception {