Groovy Documentation

org.codehaus.groovy.grails.web.pages.discovery
[Java] Class DefaultGroovyPageLocator

java.lang.Object
  org.codehaus.groovy.grails.web.pages.discovery.DefaultGroovyPageLocator
All Implemented Interfaces:
GroovyPageLocator, org.springframework.web.context.ServletContextAware, org.springframework.context.ApplicationContextAware, PluginManagerAware

public class DefaultGroovyPageLocator
extends java.lang.Object

Used to locate GSPs whether in development or WAR deployed mode from static resources, custom resource loaders and binary plugins.

Authors:
Graeme Rocher
Since:
2.0


Nested Class Summary
static class DefaultGroovyPageLocator.PluginViewPathInfo

 
Field Summary
protected GrailsPluginManager pluginManager

protected java.util.Collection resourceLoaders

 
Method Summary
void addResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)

protected GroovyPageScriptSource findBinaryScriptSource(java.lang.String uri)

GroovyPageScriptSource findPage(java.lang.String uri)

GroovyPageScriptSource findPageInBinding(java.lang.String pluginName, java.lang.String uri, GroovyPageBinding binding)

GroovyPageScriptSource findPageInBinding(java.lang.String uri, GroovyPageBinding binding)

protected GroovyPageScriptSource findResourceScriptPathForSearchPaths(java.lang.String uri, java.util.List searchPaths)

protected GroovyPageScriptSource findResourceScriptSource(java.lang.String uri)

protected GroovyPageScriptSource findResourceScriptSourceInPlugins(java.lang.String uri)

static DefaultGroovyPageLocator.PluginViewPathInfo getPluginViewPathInfo(java.lang.String uri)

void removePrecompiledPage(java.lang.String uri)

void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)

void setPluginManager(GrailsPluginManager pluginManager)

void setPrecompiledGspMap(java.util.Map precompiledGspMap)

void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)

void setServletContext(javax.servlet.ServletContext servletContext)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

pluginManager

protected GrailsPluginManager pluginManager


resourceLoaders

protected java.util.Collection resourceLoaders


 
Method Detail

addResourceLoader

public void addResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)


findBinaryScriptSource

protected GroovyPageScriptSource findBinaryScriptSource(java.lang.String uri)


findPage

public GroovyPageScriptSource findPage(java.lang.String uri)


findPageInBinding

public GroovyPageScriptSource findPageInBinding(java.lang.String pluginName, java.lang.String uri, GroovyPageBinding binding)


findPageInBinding

public GroovyPageScriptSource findPageInBinding(java.lang.String uri, GroovyPageBinding binding)


findResourceScriptPathForSearchPaths

@SuppressWarnings("unchecked")
protected GroovyPageScriptSource findResourceScriptPathForSearchPaths(java.lang.String uri, java.util.List searchPaths)


findResourceScriptSource

protected GroovyPageScriptSource findResourceScriptSource(java.lang.String uri)


findResourceScriptSourceInPlugins

protected GroovyPageScriptSource findResourceScriptSourceInPlugins(java.lang.String uri)


getPluginViewPathInfo

public static DefaultGroovyPageLocator.PluginViewPathInfo getPluginViewPathInfo(java.lang.String uri)


removePrecompiledPage

public void removePrecompiledPage(java.lang.String uri)


setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)


setPluginManager

public void setPluginManager(GrailsPluginManager pluginManager)


setPrecompiledGspMap

public void setPrecompiledGspMap(java.util.Map precompiledGspMap)


setResourceLoader

public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)


setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)


 

Groovy Documentation