2 * Copyright (c) 2014 Cisco Systems, Inc. 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
8 package org.opendaylight.controller.sal.dom.broker;
10 import org.opendaylight.controller.sal.core.api.Broker.RpcRegistration;
11 import org.opendaylight.controller.sal.core.api.RpcImplementation;
12 import org.opendaylight.yangtools.yang.common.QName;
14 import com.google.common.base.Preconditions;
16 public class RpcRegistrationWrapper implements RpcRegistration {
18 private final RpcRegistration delegate;
20 public RpcRegistrationWrapper(final RpcRegistration delegate) {
21 this.delegate = Preconditions.checkNotNull(delegate);
25 public RpcImplementation getInstance() {
26 return delegate.getInstance();
35 public QName getType() {
36 return delegate.getType();
40 * @return the delegate
42 public RpcRegistration getDelegate() {