org.codehaus.groovy.grails.web.pages.discovery
Interface GroovyPageLocator

All Known Implementing Classes:
CachingGrailsConventionGroovyPageLocator, DefaultGroovyPageLocator, GrailsConventionGroovyPageLocator

public interface GroovyPageLocator

Used to locate GSPs whether in development or WAR deployed mode.

Since:
2.0

Method Summary
 void addResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
          Adds a new resource loader to search
 GroovyPageScriptSource findPage(java.lang.String uri)
          Finds a page for the given URI
 GroovyPageScriptSource findPageInBinding(java.lang.String uri, GroovyPageBinding binding)
          Finds a page for the URI and binding
 GroovyPageScriptSource findPageInBinding(java.lang.String pluginName, java.lang.String uri, GroovyPageBinding binding)
          Finds a page for the given URI
 void removePrecompiledPage(GroovyPageCompiledScriptSource compiledScriptSource)
          Removes any precompiled pages for the given URI so that they can be replaced by dynamic pages
 

Method Detail

addResourceLoader

void addResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Adds a new resource loader to search

Parameters:
resourceLoader - The resource loader to search

findPage

GroovyPageScriptSource findPage(java.lang.String uri)
Finds a page for the given URI

Parameters:
uri - The URI
Returns:
A script source

findPageInBinding

GroovyPageScriptSource findPageInBinding(java.lang.String pluginName,
                                         java.lang.String uri,
                                         GroovyPageBinding binding)
Finds a page for the given URI

Parameters:
uri - The URI
Returns:
A script source

findPageInBinding

GroovyPageScriptSource findPageInBinding(java.lang.String uri,
                                         GroovyPageBinding binding)
Finds a page for the URI and binding

Parameters:
uri - The URI
binding - The binding
Returns:
The page source

removePrecompiledPage

void removePrecompiledPage(GroovyPageCompiledScriptSource compiledScriptSource)
Removes any precompiled pages for the given URI so that they can be replaced by dynamic pages

Parameters:
uri - The URI