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
9 package org.opendaylight.restconf.handlers;
11 import com.google.common.base.Preconditions;
12 import org.opendaylight.controller.md.sal.dom.api.DOMTransactionChain;
16 * Implementation of {@link TransactionChainHandler}.
18 * @deprecated move to splitted module restconf-nb-rfc8040
21 public class TransactionChainHandler implements Handler<DOMTransactionChain> {
23 private DOMTransactionChain transactionChain;
26 * Prepare transaction chain service for Restconf services.
28 * @param transactionChain Transaction chain
30 public TransactionChainHandler(final DOMTransactionChain transactionChain) {
31 Preconditions.checkNotNull(transactionChain);
32 this.transactionChain = transactionChain;
36 public void update(final DOMTransactionChain transactionChain) {
37 Preconditions.checkNotNull(transactionChain);
38 this.transactionChain = transactionChain;
42 public DOMTransactionChain get() {
43 return this.transactionChain;