Interface ModuleResourceResolver
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Beta @FunctionalInterface 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
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 modulerepresentation
- Requested representation- Returns:
- Path to packaged resource
- Throws:
NullPointerException
- if any argument is nullIllegalArgumentException
- if the requested representation is not supported by this resolver
-
-