Delete netconf
[controller.git] / opendaylight / md-sal / sal-restconf-broker / src / main / java / org / opendaylight / controller / sal / restconf / broker / impl / RemoteServicesFactory.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 package org.opendaylight.controller.sal.restconf.broker.impl;
9
10 import org.opendaylight.controller.sal.binding.api.NotificationService;
11 import org.opendaylight.controller.sal.binding.api.RpcConsumerRegistry;
12 import org.opendaylight.controller.sal.binding.api.data.DataBrokerService;
13 import org.opendaylight.yangtools.restconf.client.api.RestconfClientContext;
14
15 public class RemoteServicesFactory {
16
17     private final RestconfClientContext restconfClientContext;
18
19     public RemoteServicesFactory(RestconfClientContext restconfClientContext){
20         this.restconfClientContext = restconfClientContext;
21     }
22
23     public DataBrokerService getDataBrokerService(){
24         return new DataBrokerServiceImpl(this.restconfClientContext);
25     }
26
27     public NotificationService getNotificationService(){
28         return  new NotificationServiceImpl(this.restconfClientContext);
29     }
30
31     public RpcConsumerRegistry getRpcConsumerRegistry(){
32         return new RpcConsumerRegistryImpl(this.restconfClientContext);
33     }
34
35 }