org.loom.resources
Interface WebResourceBundle

All Known Implementing Classes:
DefaultWebResourceBundle, PrecompiledWebResourceBundle, ReloadableWebResourceBundle

public interface WebResourceBundle

A list of resources (javascript or css files) to be merged before delivering to the browser.


Field Summary
static java.lang.String PROD_RESOURCE_NAME
          resource name when working in production mode
 
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 getName()
           
 WebResourceType getType()
          Return the type of this bundle (js/css)
 void render(AbstractWebResourceTag tag)
          Write the tag or tags for this bundle
 

Field Detail

PROD_RESOURCE_NAME

static final java.lang.String PROD_RESOURCE_NAME
resource name when working in production mode

See Also:
Constant Field Values
Method Detail

render

void render(AbstractWebResourceTag tag)
            throws javax.servlet.jsp.JspException,
                   java.io.IOException
Write the tag or tags for this bundle

Throws:
javax.servlet.jsp.JspException
java.io.IOException

getCompiledWebResource

CompiledWebResource getCompiledWebResource(java.lang.String name)
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.


getType

WebResourceType getType()
Return the type of this bundle (js/css)


getCssResource

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

Parameters:
name - the name of the resource
Returns:
the resource (image file)

getName

java.lang.String getName()