org.codehaus.groovy.grails.web.pages.discovery
Class GroovyPageCompiledScriptSource

java.lang.Object
  extended by 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

Constructor Summary
GroovyPageCompiledScriptSource(java.lang.String uri, java.lang.String fullPath, java.lang.Class<?> compiledClass)
           
 
Method Summary
 java.lang.Class<?> getCompiledClass()
           
 GroovyPageMetaInfo getGroovyPageMetaInfo()
           
 GroovyPageResourceScriptSource getReloadableScriptSource()
           
 java.lang.String getScriptAsString()
           
 java.lang.String getURI()
           
 boolean isModified()
           
 boolean isPublic()
          Whether the GSP is publicly accessible directly, or only usable using internal rendering
 void setResourceCallable(java.security.PrivilegedAction<org.springframework.core.io.Resource> resourceCallable)
           
 java.lang.String suggestedClassName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyPageCompiledScriptSource

public GroovyPageCompiledScriptSource(java.lang.String uri,
                                      java.lang.String fullPath,
                                      java.lang.Class<?> compiledClass)
Method Detail

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)