Bump MRI upstreams
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / netconf / NetconfMountPointContextFactory.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech, s.r.o. 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.netconf.sal.connect.netconf;
9
10 import java.util.Map;
11 import org.opendaylight.yangtools.rfc8528.data.api.MountPointChild;
12 import org.opendaylight.yangtools.rfc8528.data.api.MountPointContext;
13 import org.opendaylight.yangtools.rfc8528.data.api.MountPointContextFactory;
14 import org.opendaylight.yangtools.rfc8528.data.api.YangLibraryConstants.ContainerName;
15 import org.opendaylight.yangtools.rfc8528.data.util.EmptyMountPointContext;
16 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
17 import org.opendaylight.yangtools.yang.parser.api.YangParserException;
18
19 // TODO: this should really come from mdsal-yanglib-rfc8525
20 final class NetconfMountPointContextFactory implements MountPointContextFactory {
21     private final MountPointContext mountPoint;
22
23     NetconfMountPointContextFactory(final EffectiveModelContext schemaContext) {
24         mountPoint = new EmptyMountPointContext(schemaContext);
25     }
26
27     @Override
28     public MountPointContext createContext(final Map<ContainerName, MountPointChild> libraryContainers,
29             final MountPointChild schemaMounts) throws YangParserException {
30         return mountPoint;
31     }
32 }