Fix netconf-connector-config groupId
[netconf.git] / netconf / aaa-authn-odl-plugin / src / main / java / org / opendaylight / yang / gen / v1 / config / aaa / authn / netconf / plugin / rev150715 / AuthProviderModuleFactory.java
1 /*
2  * Copyright (c) 2015 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
9 /*
10 * Generated file
11 *
12 * Generated from: yang module name: aaa-authn-netconf-plugin yang module local name: aaa-authn-netconf-plugin
13 * Generated by: org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
14 * Generated at: Wed Jul 15 15:16:51 CEST 2015
15 *
16 * Do not modify this file unless it is present under src/main directory
17 */
18 package org.opendaylight.yang.gen.v1.config.aaa.authn.netconf.plugin.rev150715;
19
20 import java.util.Collections;
21 import java.util.Set;
22 import org.opendaylight.controller.config.api.DependencyResolver;
23 import org.opendaylight.controller.config.api.DependencyResolverFactory;
24 import org.opendaylight.controller.config.api.ModuleIdentifier;
25 import org.osgi.framework.BundleContext;
26
27 public class AuthProviderModuleFactory extends org.opendaylight.yang.gen.v1.config.aaa.authn.netconf.plugin.rev150715.AbstractAuthProviderModuleFactory {
28
29     private static final ModuleIdentifier DEFAULT_INSTANCE_ID = new ModuleIdentifier(NAME, "default-auth-provider");
30
31     @Override
32     public AuthProviderModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver, final AuthProviderModule oldModule, final AutoCloseable oldInstance, final BundleContext bundleContext) {
33         return new AuthProviderModule(
34                 new ModuleIdentifier(NAME, instanceName), dependencyResolver, oldModule, oldInstance, bundleContext);
35     }
36
37     @Override
38     public AuthProviderModule instantiateModule(final String instanceName, final DependencyResolver dependencyResolver, final BundleContext bundleContext) {
39         return new AuthProviderModule(
40                 new ModuleIdentifier(NAME, instanceName), dependencyResolver, bundleContext);
41     }
42
43     @Override
44     public Set<AuthProviderModule> getDefaultModules(final DependencyResolverFactory dependencyResolverFactory, final BundleContext bundleContext) {
45         // Config subsystem puts this instance into OSGi service registry automatically
46         final DependencyResolver dependencyResolver = dependencyResolverFactory.createDependencyResolver(DEFAULT_INSTANCE_ID);
47         return Collections.singleton(new AuthProviderModule(DEFAULT_INSTANCE_ID, dependencyResolver, bundleContext));
48     }
49 }