@groovy.transform.CompileStatic abstract class ModelRecordingGroovyPage extends GroovyPage
Development time helper class to add model definitions to existing GSP pages This adds a feature for migrating existing GSPs to type checked and staticly compiled GSPs. The model types are recorded during use and the model definition is written directly to the original GSP files at shutdown. Activate with '-Dgrails.views.gsp.modelrecording=true' system property
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
CONFIG_SYSTEM_PROPERTY_NAME |
|
static boolean |
ENABLED |
Fields inherited from class | Fields |
---|---|
class GroovyPage |
CODEC_VARNAME, DEFAULT_NAMESPACE, EMPTY_BODY_CLOSURE, ENCODE_AS_ATTRIBUTE_NAME, EXPRESSION_OUT, EXPRESSION_OUT_STATEMENT, EXTENSION, LINK_NAMESPACE, OUT, OUT_STATEMENT, PAGE_SCOPE, PLUGIN_CONTEXT_PATH, RESERVED_NAMES, TEMPLATE_NAMESPACE, gspTagLibraryLookup, outputContext |
Constructor and description |
---|
ModelRecordingGroovyPage
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
initRun(java.io.Writer target, OutputContext outputContext, GroovyPageMetaInfo metaInfo) |
|
protected JspTagLib |
lookupJspTagLib(java.lang.String jspTagLibName) |
|
protected java.lang.Object |
lookupTagDispatcher(java.lang.String namespace) |
|
protected java.lang.Object |
resolveProperty(java.lang.String property) |
Methods inherited from class | Name |
---|---|
class GroovyPage |
changeItVariable, cleanup, createClosureForHtmlPart, createTagBody, evaluate, getBodyClosure, getExpressionOut, getGroovyPageFileName, getHtmlParts, getJspTag, getOut, getOutputContext, getOutputStack, getPluginContextPath, getProperty, init, initRun, invokeTag, isHtmlPart, isReservedName, lookupJspTagLib, lookupTagDispatcher, printHtmlPart, raw, registerSitemeshPreprocessMode, resolveProperty, setBodyClosure, setGspTagLibraryLookup, setHtmlParts, setJspTagLibraryResolver, setJspTags, setOut, setPluginContextPath |