2 * Copyright (c) 2014 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.frm.flow
10 import org.opendaylight.controller.md.sal.common.api.data.DataCommitHandler
11 import org.opendaylight.controller.md.sal.common.api.data.DataModification
12 import org.opendaylight.yangtools.yang.binding.DataObject
13 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService
16 class FlowCommitHandler implements DataCommitHandler<InstanceIdentifier<? extends DataObject>, DataObject> {
19 val SalFlowService salFlowService;
21 new(SalFlowService manager) {
22 _salFlowService = manager;
25 override requestCommit(DataModification<InstanceIdentifier<? extends DataObject>, DataObject> modification) {
26 return new FlowTransaction(modification,salFlowService);