org.codehaus.groovy.grails.support
Class DevelopmentResourceLoader
java.lang.Object
org.springframework.core.io.DefaultResourceLoader
org.codehaus.groovy.grails.support.DevelopmentResourceLoader
- All Implemented Interfaces:
- ResourceLoader
public class DevelopmentResourceLoader
- extends DefaultResourceLoader
A ResourceLoader that allows files references like /WEB-INF/grails-app to be loaded from ./grails-app to support
the difference between wAR deployment and run-app
- Since:
- 1.0
Created: Jan 30, 2008
- Author:
- Graeme Rocher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DevelopmentResourceLoader
public DevelopmentResourceLoader(GrailsApplication application)
DevelopmentResourceLoader
public DevelopmentResourceLoader()
DevelopmentResourceLoader
public DevelopmentResourceLoader(GrailsApplication application,
String baseLocation)
getResource
public Resource getResource(String location)
- Specified by:
getResource
in interface ResourceLoader
- Overrides:
getResource
in class DefaultResourceLoader
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-2009 The Grails project