org.apache.tapestry.internal.transform
Class IncludeJavaScriptLibraryWorker
java.lang.Object
org.apache.tapestry.internal.transform.AbstractIncludeAssetWorker
org.apache.tapestry.internal.transform.IncludeJavaScriptLibraryWorker
- All Implemented Interfaces:
- ComponentClassTransformWorker
public class IncludeJavaScriptLibraryWorker
- extends AbstractIncludeAssetWorker
Recognizes the IncludeJavaScriptLibrary annotation, and ensures that PageRenderSupport.addScriptLink(org.apache.tapestry.Asset[]) is invoked.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncludeJavaScriptLibraryWorker
public IncludeJavaScriptLibraryWorker(AssetSource assetSource,
PageRenderSupport pageRenderSupport,
SymbolSource symbolSource)
transform
public void transform(ClassTransformation transformation,
MutableComponentModel model)
- Description copied from interface:
ComponentClassTransformWorker
- Invoked to perform a transformation on an as-yet unloaded component class, represented by the
ClassTransformation instance. In some cases, the worker may make changes to the component model -- for example,
a worker that deals with parameters may update the model to reflect those parameters.
handleAsset
protected void handleAsset(Asset asset)
- Description copied from class:
AbstractIncludeAssetWorker
- Invoked, from the component's setup render phase, for each asset. This method must be threadsafe. Most
implementation pass the asset to a particular method of
PageRenderSupport.
- Specified by:
handleAsset in class AbstractIncludeAssetWorker
- Parameters:
asset - to be processed
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.