Interface ComponentProvider
public interface ComponentProvider
A service to locate, install and modify "Components".
A component is essentially a directory and a set of files attached to a unique string id.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddToComponent(String componentID, File[] components) Modify an existing component by adding files to it.File[]Grab the current component definition.voiddefineComponent(String componentID, File[] components) This will define a new component using the files passed in.lockFile()
-
Method Details
-
componentLocation
-
component
-
defineComponent
This will define a new component using the files passed in. Note: The component will copy/move the files into a cache location. You should not use them directly, but look them up using the `component` method.- Parameters:
componentID- The component's id stringcomponents- The set of files which defines the component.
-
addToComponent
-
lockFile
File lockFile()- Returns:
- The lockfile you should use to ensure your component cache does not become corrupted. May return null if there is no lockfile for this provider.
-