2 * Copyright (c) 2019 PANTHEON.tech, s.r.o. 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.netconf.sal.connect.netconf;
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;
19 // TODO: this should really come from mdsal-yanglib-rfc8525
20 final class NetconfMountPointContextFactory implements MountPointContextFactory {
21 private final MountPointContext mountPoint;
23 NetconfMountPointContextFactory(final EffectiveModelContext schemaContext) {
24 mountPoint = new EmptyMountPointContext(schemaContext);
28 public MountPointContext createContext(final Map<ContainerName, MountPointChild> libraryContainers,
29 final MountPointChild schemaMounts) throws YangParserException {