+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.controller.sal.binding.impl.connect.dom;
import static com.google.common.base.Preconditions.checkNotNull;
import org.opendaylight.controller.sal.binding.api.NotificationProviderService;
import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
import org.opendaylight.controller.sal.binding.api.data.DataProviderService;
+import org.opendaylight.yangtools.yang.data.impl.codec.BindingIndependentMappingService;
import org.opendaylight.controller.sal.binding.impl.RootBindingAwareBroker;
import org.opendaylight.controller.sal.core.api.Broker.ProviderSession;
import org.opendaylight.controller.sal.core.api.RpcProvisionRegistry;
connector.setMappingService(source.getMappingService());
return connector;
}
-
+
public static void startDataForwarding(BindingIndependentConnector connector, DataProviderService baService,
ProviderSession domContext) {
startDataForwarding(connector, baService,
startRpcForwarding(connector, rpcProviderRegistry, domProviderContext.getService(RpcProvisionRegistry.class));
}
-
+
public static void startNotificationForwarding(BindingIndependentConnector connector, NotificationProviderService provider,ProviderSession domProviderContext) {
startNotificationForwarding(connector, provider, domProviderContext.getService(NotificationPublishService.class));
}
connector.setDomDataService(domService);
connector.startDataForwarding();
}
-
- public static void startNotificationForwarding(BindingIndependentConnector connector, NotificationProviderService baService, NotificationPublishService domService) {
+
+ public static void startNotificationForwarding(BindingIndependentConnector connector,
+ NotificationProviderService baService, NotificationPublishService domService) {
if(connector.isNotificationForwarding()) {
return;
}
-
- // FIXME
+ connector.setBindingNotificationService(baService);
+ connector.setDomNotificationService(domService);
+ connector.startNotificationForwarding();
}
//