1 package org.opendaylight.controller.config.yang.config.remote_rpc_connector;
3 import org.opendaylight.controller.remote.rpc.RemoteRpcProviderFactory;
4 import org.opendaylight.controller.sal.core.api.Broker;
5 import org.osgi.framework.BundleContext;
7 public class RemoteRPCBrokerModule extends org.opendaylight.controller.config.yang.config.remote_rpc_connector.AbstractRemoteRPCBrokerModule {
8 private BundleContext bundleContext;
9 public RemoteRPCBrokerModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
10 super(identifier, dependencyResolver);
13 public RemoteRPCBrokerModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.config.remote_rpc_connector.RemoteRPCBrokerModule oldModule, java.lang.AutoCloseable oldInstance) {
14 super(identifier, dependencyResolver, oldModule, oldInstance);
18 public void customValidation() {
19 // add custom validation form module attributes here.
23 public java.lang.AutoCloseable createInstance() {
24 Broker broker = getDomBrokerDependency();
25 return RemoteRpcProviderFactory.createInstance(broker, bundleContext);
28 public void setBundleContext(final BundleContext bundleContext) {
29 this.bundleContext = bundleContext;