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.group
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.yang.gen.v1.urn.opendaylight.group.service.rev130918.SalGroupService
13 import org.opendaylight.yangtools.yang.binding.DataObject
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier
16 class GroupCommitHandler implements DataCommitHandler<InstanceIdentifier<? extends DataObject>, DataObject> {
19 val SalGroupService groupService;
21 new(SalGroupService groupService) {
22 _groupService = groupService;
25 override requestCommit(DataModification<InstanceIdentifier<? extends DataObject>, DataObject> modification) {
26 return new GroupTransaction(modification,groupService);