org.loom.resources
Class PrecompiledWebResourceBundle
java.lang.Object
org.loom.resources.PrecompiledWebResourceBundle
- All Implemented Interfaces:
- WebResourceBundle
public class PrecompiledWebResourceBundle
- extends java.lang.Object
- implements WebResourceBundle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrecompiledWebResourceBundle
public PrecompiledWebResourceBundle(java.lang.String name,
java.lang.String location)
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()