Interface RequiredResourceSupport
- All Superinterfaces:
ResourceProvider
- All Known Implementing Classes:
JavaExecutor, NpmExecutor
Implemented by ResourceProviders that require resources to be
available without needing them for a specific purpose. The need
for this usually arises when a ResourceProvider is scriptable
and the required resources depend on the script.
Such resource providers should use the methods from this interface to register the required resources, thus ensuring a consistent API.
-
Method Summary
Modifier and TypeMethodDescriptionConvenience method that adds aFileResourceto the required resources.Convenience method that adds aFileTreeto the required resources.Adds the givenStreamof resources to the required resources.Methods inherited from interface ResourceProvider
context, name, of, resources
-
Method Details
-
required
Adds the givenStreamof resources to the required resources.- Parameters:
resources- the resources- Returns:
- the provider
-
required
Convenience method that adds aFileTreeto the required resources. Ifrootis relative, it is resolved against the project's directory.- Parameters:
root- the rootpattern- the pattern- Returns:
- the provider
-
required
Convenience method that adds aFileResourceto the required resources. Ifpathis relative, it is resolved against the project's directory.- Parameters:
file- the file- Returns:
- the provider
-