*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/eplv10.html
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.yangtools.yang.parser.impl.util;
+import com.google.common.base.Optional;
+import com.google.common.collect.ImmutableMap;
+import java.io.InputStream;
import java.util.Map;
import java.util.Map.Entry;
-
+import javax.annotation.concurrent.NotThreadSafe;
+import org.opendaylight.yangtools.yang.model.util.repo.AdvancedSchemaSourceProvider;
import org.opendaylight.yangtools.yang.model.util.repo.SchemaSourceProvider;
import org.opendaylight.yangtools.yang.model.util.repo.SourceIdentifier;
-import com.google.common.base.Optional;
-import com.google.common.collect.ImmutableMap;
-
/**
* Resolver for YANG Schema Source which is based on DependencyInfo
*
* {@link YangSourceContext}.
*
*/
+@Deprecated
+@NotThreadSafe
public final class YangSourceFromDependencyInfoResolver extends YangSourceContextResolver {
private final Map<SourceIdentifier, YangModelDependencyInfo> dependencyInfo;
- public YangSourceFromDependencyInfoResolver(final Map<SourceIdentifier, YangModelDependencyInfo> moduleDependencies) {
+ public YangSourceFromDependencyInfoResolver(final Map<SourceIdentifier, YangModelDependencyInfo> moduleDependencies,
+ AdvancedSchemaSourceProvider<InputStream> sourceProvider) {
+ super(sourceProvider);
dependencyInfo = ImmutableMap.copyOf(moduleDependencies);
}