org.codehaus.groovy.grails.web.pages.discovery
Class GroovyPageCompiledScriptSource
java.lang.Object
org.codehaus.groovy.grails.web.pages.discovery.GroovyPageCompiledScriptSource
- All Implemented Interfaces:
- GroovyPageScriptSource, org.springframework.scripting.ScriptSource
public class GroovyPageCompiledScriptSource
- extends java.lang.Object
- implements GroovyPageScriptSource
Represents a pre-compiled GSP.
- Since:
- 2.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyPageCompiledScriptSource
public GroovyPageCompiledScriptSource(java.lang.String uri,
java.lang.String fullPath,
java.lang.Class<?> compiledClass)
getURI
public java.lang.String getURI()
- Specified by:
getURI in interface GroovyPageScriptSource
- Returns:
- The URI of the Groovy page
isPublic
public boolean isPublic()
- Whether the GSP is publicly accessible directly, or only usable using internal rendering
- Specified by:
isPublic in interface GroovyPageScriptSource
- Returns:
- true if it can be rendered publicly
getCompiledClass
public java.lang.Class<?> getCompiledClass()
- Returns:
- The compiled class
getScriptAsString
public java.lang.String getScriptAsString()
throws java.io.IOException
- Specified by:
getScriptAsString in interface org.springframework.scripting.ScriptSource
- Throws:
java.io.IOException
isModified
public boolean isModified()
- Specified by:
isModified in interface org.springframework.scripting.ScriptSource
getReloadableScriptSource
public GroovyPageResourceScriptSource getReloadableScriptSource()
suggestedClassName
public java.lang.String suggestedClassName()
- Specified by:
suggestedClassName in interface org.springframework.scripting.ScriptSource
getGroovyPageMetaInfo
public GroovyPageMetaInfo getGroovyPageMetaInfo()
setResourceCallable
public void setResourceCallable(java.security.PrivilegedAction<org.springframework.core.io.Resource> resourceCallable)