package org.opendaylight.yangtools.yang2sources.spi;
import com.google.common.annotations.Beta;
-import java.util.Optional;
-import org.opendaylight.yangtools.yang.model.api.ModuleLike;
-import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
/**
* An SPI-level interface to find the schema source for a particular YANG module, as packaged in the final artifact.
*/
@Beta
@FunctionalInterface
-public interface ModuleResourceResolver {
- /**
- * Find the path of the packaged resource which corresponds to the specified module in the specified representation.
- *
- * @param module Requested module
- * @param representation Requested representation
- * @return Path to packaged resource
- * @throws NullPointerException if any argument is null
- * @throws IllegalArgumentException if the requested representation is not supported by this resolver
- */
- Optional<String> findModuleResourcePath(ModuleLike module,
- Class<? extends SchemaSourceRepresentation> representation);
+@SuppressFBWarnings(value = "NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification = "Migration to new place")
+public interface ModuleResourceResolver extends org.opendaylight.yangtools.plugin.generator.api.ModuleResourceResolver {
+
}