org.loom.resources
Class PrecompiledWebResourceBundle

java.lang.Object
  extended by org.loom.resources.PrecompiledWebResourceBundle
All Implemented Interfaces:
WebResourceBundle

public class PrecompiledWebResourceBundle
extends java.lang.Object
implements WebResourceBundle


Field Summary
 
Fields inherited from interface org.loom.resources.WebResourceBundle
PROD_RESOURCE_NAME
 
Constructor Summary
PrecompiledWebResourceBundle(java.lang.String name, java.lang.String location)
           
 
Method Summary
 CompiledWebResource getCompiledWebResource(java.lang.String name)
          Returns the compiled web resource (a JS/CSS file).
 CssResource getCssResource(java.lang.String name)
          Return an external resource referenced from one of the CSS stylesheets (url() attribute) contained in this bundle
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 WebResourceType getType()
          Return the type of this bundle (js/css)
 void render(AbstractWebResourceTag tag)
          Write the tag or tags for this bundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrecompiledWebResourceBundle

public PrecompiledWebResourceBundle(java.lang.String name,
                                    java.lang.String location)
Method Detail

render

public void render(AbstractWebResourceTag tag)
            throws javax.servlet.jsp.JspException,
                   java.io.IOException
Description copied from interface: WebResourceBundle
Write the tag or tags for this bundle

Specified by:
render in interface WebResourceBundle
Throws:
javax.servlet.jsp.JspException
java.io.IOException

getName

public java.lang.String getName()
Specified by:
getName in interface WebResourceBundle

getType

public WebResourceType getType()
Description copied from interface: WebResourceBundle
Return the type of this bundle (js/css)

Specified by:
getType in interface WebResourceBundle

getCompiledWebResource

public CompiledWebResource getCompiledWebResource(java.lang.String name)
Description copied from interface: WebResourceBundle
Returns the compiled web resource (a JS/CSS file). If name is null (production mode), returns the first resource in this bundle which should contain the full contents of the bundle in a single, minified file.

Specified by:
getCompiledWebResource in interface WebResourceBundle

getCssResource

public CssResource getCssResource(java.lang.String name)
Description copied from interface: WebResourceBundle
Return an external resource referenced from one of the CSS stylesheets (url() attribute) contained in this bundle

Specified by:
getCssResource in interface WebResourceBundle
Parameters:
name - the name of the resource
Returns:
the resource (image file)

getLocation

public java.lang.String getLocation()