2 * Copyright (c) 2016 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.restconf.handlers;
10 import com.google.common.base.Preconditions;
11 import org.opendaylight.controller.md.sal.dom.api.DOMTransactionChain;
15 * Implementation of {@link TransactionChainHandler}
18 public class TransactionChainHandler implements Handler<DOMTransactionChain> {
20 private final DOMTransactionChain transactionChain;
23 * Prepare transaction chain service for Restconf services
25 * @param transactionChain
27 public TransactionChainHandler(final DOMTransactionChain transactionChain) {
28 Preconditions.checkNotNull(transactionChain);
29 this.transactionChain = transactionChain;
33 public DOMTransactionChain get() {
34 return this.transactionChain;