Package: org.codehaus.groovy.grails.web.pages.discovery

## [Java] Class CachingGrailsConventionGroovyPageLocator

- org.codehaus.groovy.grails.web.pages.discovery.CachingGrailsConventionGroovyPageLocator

- Extends GrailsConventionGroovyPageLocator adding caching of the located GrailsPageScriptSource.

  Authors:
    Graeme Rocher
  Since:
    2.0

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class DefaultGroovyPageLocator` | `pluginManager, reloadEnabled, resourceLoaders, warDeployed`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `GroovyPageScriptSource` | `findPage(java.lang.String uri)`
    `GroovyPageScriptSource` | `findPageInBinding(java.lang.String uri, GroovyPageBinding binding)`
    `GroovyPageScriptSource` | `findPageInBinding(java.lang.String pluginName, java.lang.String uri, GroovyPageBinding binding)`
    `long` | `getCacheTimeout()`
    `protected GroovyPageScriptSource` | `lookupCache(CachingGrailsConventionGroovyPageLocator.GroovyPageLocatorCacheKey cacheKey, java.util.concurrent.Callable<GroovyPageScriptSource> updater)`
    `void` | `removePrecompiledPage(GroovyPageCompiledScriptSource scriptSource)`
    `void` | `setCacheTimeout(long cacheTimeout)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class GrailsConventionGroovyPageLocator` | `findTemplate, findTemplate, findTemplate, findTemplateByPath, findTemplateInBinding, findTemplateInBinding, findView, findView, findView, findView, findViewByPath, findViewForFormat, getNameForController, lookupRequestFormat, resolveViewFormat, setGrailsApplication, setMimeTypeResolver`
    `class DefaultGroovyPageLocator` | `addResourceLoader, createGroovyPageCompiledScriptSource, findBinaryScriptSource, findPage, findPageInBinding, findPageInBinding, findReloadablePage, findResource, findResource, findResourceInPlugins, findResourceScriptPathForSearchPaths, findResourceScriptSource, findResourceScriptSourceInPlugins, getPluginViewPathInfo, isReloadEnabled, removePrecompiledPage, removePrefix, removeViewLocationPrefixes, resolveContextPath, resolvePluginViewPath, resolveSearchPaths, resolveViewInBinaryPlugin, setApplicationContext, setPluginManager, setPrecompiledGspMap, setReloadEnabled, setResourceLoader, setServletContext`
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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()`

- - ### Method Detail

    - #### @java.lang.Override public GroovyPageScriptSource findPage(java.lang.String uri)

    - #### @java.lang.Override public GroovyPageScriptSource findPageInBinding(java.lang.String uri, GroovyPageBinding binding)

    - #### @java.lang.Override public GroovyPageScriptSource findPageInBinding(java.lang.String pluginName, java.lang.String uri, GroovyPageBinding binding)

    - #### public long getCacheTimeout()

    - #### @java.lang.SuppressWarnings("rawtypes") protected GroovyPageScriptSource lookupCache(CachingGrailsConventionGroovyPageLocator.GroovyPageLocatorCacheKey cacheKey, java.util.concurrent.Callable<GroovyPageScriptSource> updater)

    - #### @java.lang.Override public void removePrecompiledPage(GroovyPageCompiledScriptSource scriptSource)

    - #### public void setCacheTimeout(long cacheTimeout)