org.codehaus.groovy.grails.web.pages
Class GroovyPageResourceLoader
java.lang.Object
org.codehaus.groovy.grails.support.StaticResourceLoader
org.codehaus.groovy.grails.web.pages.GroovyPageResourceLoader
- All Implemented Interfaces:
- ResourceLoader
public class GroovyPageResourceLoader
- extends StaticResourceLoader
A StaticResourceLoader that loads GSPs from a local grails-app folder instead of from WEB-INF in
development mode
- Since:
- 0.5
Created: Feb 26, 2007
Time: 4:25:08 PM
- Author:
- Graeme Rocher
- See Also:
StaticResourceLoader
Field Summary |
static String |
BEAN_ID
The id of the instance of this bean to be used in the Spring context |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEAN_ID
public static final String BEAN_ID
- The id of the instance of this bean to be used in the Spring context
- See Also:
- Constant Field Values
GroovyPageResourceLoader
public GroovyPageResourceLoader()
setBaseResource
public void setBaseResource(Resource baseResource)
- Overrides:
setBaseResource
in class StaticResourceLoader
getResource
public Resource getResource(String location)
- Specified by:
getResource
in interface ResourceLoader
- Overrides:
getResource
in class StaticResourceLoader
getRealLocationInProject
protected String getRealLocationInProject(String location)
- Retrieves the real location of a GSP within a Grails project
- Parameters:
location
- The location of the GSP at deployment time
- Returns:
- The location of the GSP at development time
Copyright (c) 2005-2006 The Grails project