Package io.quarkus.devtools.codestarts
Class CodestartResourceLoader
- java.lang.Object
-
- io.quarkus.devtools.codestarts.CodestartResourceLoader
-
- All Implemented Interfaces:
CodestartPathLoader
public final class CodestartResourceLoader extends Object implements CodestartPathLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.devtools.codestarts.CodestartPathLoader
CodestartPathLoader.PathConsumer<T extends Object>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<String,Codestart>loadCodestartsFromResources(List<ResourceLoader> codestartResourceLoaders, String relativePath)<T> TloadResourceAsPath(String name, CodestartPathLoader.PathConsumer<T> consumer)static CodestartPathLoadertoCodestartPathLoader(ResourceLoader resourceLoader)
-
-
-
Method Detail
-
loadCodestartsFromResources
public static Map<String,Codestart> loadCodestartsFromResources(List<ResourceLoader> codestartResourceLoaders, String relativePath) throws IOException
- Throws:
IOException
-
toCodestartPathLoader
public static CodestartPathLoader toCodestartPathLoader(ResourceLoader resourceLoader)
-
loadResourceAsPath
public <T> T loadResourceAsPath(String name, CodestartPathLoader.PathConsumer<T> consumer) throws IOException
- Specified by:
loadResourceAsPathin interfaceCodestartPathLoader- Throws:
IOException
-
-