org.opendaylight.bgpcep.pcep.tunnel.provider.TunnelProviderDependencies Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pcep-tunnel-provider Show documentation
Show all versions of pcep-tunnel-provider Show documentation
PCEP Tunnel Topology Provider
/*
* Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.bgpcep.pcep.tunnel.provider;
import static java.util.Objects.requireNonNull;
import org.opendaylight.mdsal.binding.api.DataBroker;
import org.opendaylight.mdsal.binding.api.RpcProviderService;
import org.opendaylight.mdsal.binding.api.RpcService;
import org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider;
import org.osgi.framework.BundleContext;
final class TunnelProviderDependencies {
private final DataBroker dataBroker;
private final ClusterSingletonServiceProvider cssp;
private final RpcService rpcService;
private final RpcProviderService rpcProviderRegistry;
private final BundleContext bundleContext;
TunnelProviderDependencies(
final DataBroker dataBroker,
final ClusterSingletonServiceProvider cssp,
final RpcProviderService rpcProviderRegistry,
final RpcService rpcService,
final BundleContext bundleContext
) {
this.dataBroker = requireNonNull(dataBroker);
this.cssp = requireNonNull(cssp);
this.rpcProviderRegistry = requireNonNull(rpcProviderRegistry);
this.bundleContext = requireNonNull(bundleContext);
this.rpcService = requireNonNull(rpcService);
}
DataBroker getDataBroker() {
return dataBroker;
}
ClusterSingletonServiceProvider getCssp() {
return cssp;
}
RpcService getRpcConsumerRegistry() {
return rpcService;
}
RpcProviderService getRpcProviderRegistry() {
return rpcProviderRegistry;
}
BundleContext getBundleContext() {
return bundleContext;
}
}