Separate out single-node netconf-topology
[netconf.git] / netconf / netconf-topology / src / main / java / org / opendaylight / netconf / topology / spi / SharedSchemaRepositoryProvider.java
1 /*
2  * Copyright (c) 2016 Inocybe Technologies 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.topology.spi;
9
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.netconf.topology.api.SchemaRepositoryProvider;
12 import org.opendaylight.yangtools.yang.parser.repo.SharedSchemaRepository;
13
14 public class SharedSchemaRepositoryProvider implements SchemaRepositoryProvider {
15     private final @NonNull SharedSchemaRepository schemaRepository;
16
17     public SharedSchemaRepositoryProvider(final String moduleName) {
18         schemaRepository = new SharedSchemaRepository(moduleName);
19     }
20
21     @Override
22     public SharedSchemaRepository getSharedSchemaRepository() {
23         return schemaRepository;
24     }
25 }