Bulk-add copyright headers to .xtend files
[controller.git] / opendaylight / md-sal / forwardingrules-manager / src / main / java / org / opendaylight / controller / frm / group / GroupCommitHandler.xtend
1 /*
2  * Copyright (c) 2014 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.frm.group
9
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
15
16 class GroupCommitHandler implements DataCommitHandler<InstanceIdentifier<? extends DataObject>, DataObject> {
17        
18     @Property
19     val SalGroupService groupService;
20     
21     new(SalGroupService groupService) {
22         _groupService = groupService;
23     }
24     
25     override requestCommit(DataModification<InstanceIdentifier<? extends DataObject>, DataObject> modification) {
26         return new GroupTransaction(modification,groupService);
27     }
28     
29 }