Package org.mule.apikit.loader
Interface ResourceLoader
- All Known Implementing Classes:
ApiSyncResourceLoader,ClassPathResourceLoader
public interface ResourceLoader
Represents a way of getting resources from the application
-
Method Summary
Modifier and TypeMethodDescriptiongetResource(String relativePath) Gets the root RAML Filedefault InputStreamgetResourceAsStream(String relativePath)
-
Method Details
-
getResource
Gets the root RAML File- Parameters:
relativePath- Location of the root RAML file relative to the /mule/resources/api folder or a resource:: in case when the API is defined as a dependency (API sync)- Returns:
URIto the RAML resource
-
getResourceAsStream
-