org.apache.tapestry.enhance
Class InjectScriptWorker
java.lang.Object
org.apache.tapestry.enhance.InjectScriptWorker
- All Implemented Interfaces:
- InjectEnhancementWorker
public class InjectScriptWorker
- extends Object
- implements InjectEnhancementWorker
Injects IScript
instances directly into pages or components.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectScriptWorker
public InjectScriptWorker()
performEnhancement
public void performEnhancement(EnhancementOperation op,
InjectSpecification spec)
- Description copied from interface:
InjectEnhancementWorker
- Perform the enhancement defined by the
InjectSpecification
. Thrown runtime
exceptions are caught and reported by the invoker.
- Specified by:
performEnhancement
in interface InjectEnhancementWorker
- Parameters:
op
- Current enhancement context.spec
- The injection specificiation configuration.
injectScript
public void injectScript(EnhancementOperation op,
String propertyName,
String scriptName,
org.apache.hivemind.Location location)
- Injects a script reference.
- Parameters:
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.
setSource
public void setSource(IScriptSource source)
setAssetSource
public void setAssetSource(AssetSource assetSource)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.