Interface ScriptsRepository
- All Known Implementing Classes:
AbstractScriptsRepository,ClasspathScriptsRepository,FileSystemScriptsRepository,ModelScriptsRepository,RemoteScriptsRepository,TestClasspathScriptsRepository
public interface ScriptsRepository
This interface provides methods for lookup scripts in the repository by protocol and path.
-
Method Summary
Modifier and TypeMethodDescriptionProvides all supported protocols.lookupScript(String protocol, String path) Lookup script in the repository by protocol and path.
-
Method Details
-
lookupScript
Lookup script in the repository by protocol and path.- Parameters:
protocol- native protocol for the given repository.path- path of the Script in the given repository.- Returns:
- ScriptContent object
- Throws:
ScriptNotFoundException- when Script cannot be located in the repository.ScriptURIException- when problem with protocol or path occurs.
-
getSupportedProtocols
Collection<String> getSupportedProtocols()Provides all supported protocols. These are used byScriptRepositoriesRegistryto locate this repository .
-