com.atlassian.greenhopper.web.util
Class JsGlobalTransformer

java.lang.Object
  extended by com.atlassian.greenhopper.web.util.JsGlobalTransformer
All Implemented Interfaces:
com.atlassian.plugin.webresource.transformer.WebResourceTransformer

public class JsGlobalTransformer
extends java.lang.Object
implements com.atlassian.plugin.webresource.transformer.WebResourceTransformer

Takes care of transforming javascript files using global constants. Currently supported are:

${contextPath} : The contextPath from HttpServletRequest

Author:
ahennecke

Constructor Summary
JsGlobalTransformer(BuildProperties buildProperties)
           
 
Method Summary
 java.lang.CharSequence doTransform(java.lang.CharSequence originalContent)
           
 com.atlassian.plugin.servlet.DownloadableResource transform(org.dom4j.Element configElement, com.atlassian.plugin.elements.ResourceLocation location, java.lang.String filePath, com.atlassian.plugin.servlet.DownloadableResource nextResource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsGlobalTransformer

public JsGlobalTransformer(BuildProperties buildProperties)
Method Detail

transform

public com.atlassian.plugin.servlet.DownloadableResource transform(org.dom4j.Element configElement,
                                                                   com.atlassian.plugin.elements.ResourceLocation location,
                                                                   java.lang.String filePath,
                                                                   com.atlassian.plugin.servlet.DownloadableResource nextResource)
Specified by:
transform in interface com.atlassian.plugin.webresource.transformer.WebResourceTransformer

doTransform

public java.lang.CharSequence doTransform(java.lang.CharSequence originalContent)


Copyright © 2007-2012 Atlassian. All Rights Reserved.