5b31b5f50df5c42ebc8288613268fee03c14d457
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / impl / RpcServiceRegistrationImpl.xtend
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 package org.opendaylight.controller.sal.binding.impl
9
10 import org.osgi.framework.ServiceRegistration
11 import org.opendaylight.yangtools.yang.binding.RpcService
12 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration
13
14 class RpcServiceRegistrationImpl<T extends RpcService> implements RpcRegistration<T> {
15
16     val ServiceRegistration<T> osgiRegistration;
17     private val T service;
18     val Class<T> cls;
19
20     public new(Class<T> type, T service, ServiceRegistration<T> osgiReg) {
21         this.cls = type;
22         this.osgiRegistration = osgiReg;
23         this.service = service;
24     }
25
26     override getService() {
27         this.service
28     }
29
30     override unregister() {
31         throw new UnsupportedOperationException("TODO: auto-generated method stub")
32     }
33 }