Promote ForeignShardThreePhaseCommitCohort to dom.spi
[mdsal.git] / dom / mdsal-dom-inmemory-datastore / src / main / java / org / opendaylight / mdsal / dom / store / inmemory / InmemoryShardDataModificationFactoryBuilder.java
1 /*
2  * Copyright (c) 2016 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
9 package org.opendaylight.mdsal.dom.store.inmemory;
10
11 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
12 import org.opendaylight.mdsal.dom.spi.shard.AbstractShardModificationFactoryBuilder;
13
14 class InmemoryShardDataModificationFactoryBuilder
15         extends AbstractShardModificationFactoryBuilder<InMemoryShardDataModificationFactory> {
16
17     InmemoryShardDataModificationFactoryBuilder(final DOMDataTreeIdentifier root) {
18         super(root);
19     }
20
21     @Override
22     public InMemoryShardDataModificationFactory build() {
23         return new InMemoryShardDataModificationFactory(root, buildChildren(), childShards);
24     }
25
26 }