public class InjectScriptWorker extends java.lang.Object implements InjectEnhancementWorker
IScript
instances directly into pages or components.Constructor and Description |
---|
InjectScriptWorker() |
Modifier and Type | Method and Description |
---|---|
void |
injectScript(EnhancementOperation op,
java.lang.String propertyName,
java.lang.String scriptName,
org.apache.hivemind.Location location)
Injects a compiled script.
|
void |
performEnhancement(EnhancementOperation op,
InjectSpecification spec)
Perform the enhancement defined by the
InjectSpecification . |
void |
setSource(IScriptSource source) |
public InjectScriptWorker()
public void performEnhancement(EnhancementOperation op, InjectSpecification spec)
InjectEnhancementWorker
InjectSpecification
.
Thrown runtime exceptions are caught and reported by the invoker.performEnhancement
in interface InjectEnhancementWorker
public void injectScript(EnhancementOperation op, java.lang.String propertyName, java.lang.String scriptName, org.apache.hivemind.Location location)
op
- the enhancement operationpropertyName
- the name of the property to injectscriptName
- the name of the script (relative to the location)location
- the location of the specification; primarily used as the base location for finding
the script.public void setSource(IScriptSource source)