2 * Copyright (c) 2013 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.restconf.broker.impl;
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;
15 public class RemoteServicesFactory {
17 private final RestconfClientContext restconfClientContext;
19 public RemoteServicesFactory(RestconfClientContext restconfClientContext){
20 this.restconfClientContext = restconfClientContext;
23 public DataBrokerService getDataBrokerService(){
24 return new DataBrokerServiceImpl(this.restconfClientContext);
27 public NotificationService getNotificationService(){
28 return new NotificationServiceImpl(this.restconfClientContext);
31 public RpcConsumerRegistry getRpcConsumerRegistry(){
32 return new RpcConsumerRegistryImpl(this.restconfClientContext);