Merge "Resolve Bug:707 - ConfigPusher should wait for netconf-impl to register JMX...
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / impl / RpcProxyContext.java
1 /*
2  * Copyright (c) 2013 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 package org.opendaylight.controller.sal.binding.impl;
10
11 import org.opendaylight.yangtools.yang.binding.RpcService;
12 import org.osgi.framework.ServiceRegistration;
13
14 @SuppressWarnings("all")
15 public class RpcProxyContext {
16   public RpcProxyContext(final Class<? extends RpcService> proxyClass) {
17     this.proxyClass = proxyClass;
18   }
19
20   protected final Class<? extends RpcService> proxyClass;
21
22   protected RpcService _proxy;
23
24   public RpcService getProxy() {
25     return this._proxy;
26   }
27
28   public void setProxy(final RpcService proxy) {
29     this._proxy = proxy;
30   }
31
32   protected ServiceRegistration<? extends RpcService> _registration;
33
34   public ServiceRegistration<? extends RpcService> getRegistration() {
35     return this._registration;
36   }
37
38   public void setRegistration(final ServiceRegistration<? extends RpcService> registration) {
39     this._registration = registration;
40   }
41 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.