89f296d47dea08f93396ef6431eee2459acd7df9
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / config / yang / config / actor_system_provider / impl / ActorSystemProviderModule.java
1 /*
2  * Copyright (c) 2015 Brocade Communications 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 package org.opendaylight.controller.config.yang.config.actor_system_provider.impl;
10
11 import org.osgi.framework.BundleContext;
12
13 public class ActorSystemProviderModule extends AbstractActorSystemProviderModule {
14     private BundleContext bundleContext;
15
16     public ActorSystemProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
17         super(identifier, dependencyResolver);
18     }
19
20     public ActorSystemProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, ActorSystemProviderModule oldModule, java.lang.AutoCloseable oldInstance) {
21         super(identifier, dependencyResolver, oldModule, oldInstance);
22     }
23
24     @Override
25     public void customValidation() {
26         // add custom validation form module attributes here.
27     }
28
29     @Override
30     public java.lang.AutoCloseable createInstance() {
31         return new ActorSystemProviderImpl(bundleContext);
32     }
33
34     public void setBundleContext(BundleContext bundleContext) {
35         this.bundleContext = bundleContext;
36     }
37 }