Interface ModuleResourceResolver

  • All Known Subinterfaces:
    ModuleResourceResolver

    @Beta
    public interface ModuleResourceResolver
    An SPI-level interface to find the schema source for a particular YANG module, as packaged in the final artifact. The module must be part of the current resolution context.
    • Method Detail

      • findModuleResourcePath

        Optional<String> findModuleResourcePath​(ModuleLike module,
                                                Class<? extends SchemaSourceRepresentation> representation)
        Find the path of the packaged resource which corresponds to the specified module in the specified representation.
        Parameters:
        module - Requested module
        representation - Requested representation
        Returns:
        Path to packaged resource
        Throws:
        NullPointerException - if any argument is null
        IllegalArgumentException - if the requested representation is not supported by this resolver