@groovy.transform.CompileStatic class Sitemesh3GrailsPlugin extends Plugin
Provides GSP layout decoration through SiteMesh 3's filter-less,
view-resolver-based integration. It is a drop-in replacement for the
grails-layout module; the two are mutually exclusive. Because this module
arrives transitively through grails-dependencies-starter-web, an
application that declares grails-layout can end up with both on the
classpath — that state is tolerated for migration compatibility (SiteMesh 2
keeps decorating and this module stands down) but warned about by
Sitemesh3EnvironmentPostProcessor, and support for it may be removed.
The heavy lifting lives outside this class: default configuration
properties are contributed by Sitemesh3EnvironmentPostProcessor
(registered in META-INF/spring.factories) and the view-resolver
decoration is applied by Sitemesh3AutoConfiguration. The only bean
this plugin itself contributes is registered through beanRegistrar(),
the modern replacement for the deprecated doWithSpring() bean DSL.
With no doWithSpring() bean-builder closure — whose dynamic
dispatch against the bean builder prevents static compilation of descriptor
classes — this plugin compiles statically as a whole.
| Type | Name and description |
|---|---|
java.lang.Object |
author |
java.lang.Object |
authorEmail |
java.lang.Object |
description |
java.lang.Object |
developers |
java.lang.Object |
grailsVersion |
java.lang.Object |
license |
java.lang.Object |
loadBefore |
java.lang.Object |
profiles |
java.lang.Object |
providedArtefacts |
java.lang.Object |
title |
| Properties inherited from class | Properties |
|---|---|
class Plugin |
applicationContext, artefacts, environment, grailsApplication, plugin, pluginManager |
| Constructor and description |
|---|
Sitemesh3GrailsPlugin() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
BeanRegistrar |
beanRegistrar() |
| Methods inherited from class | Name |
|---|---|
class Plugin |
beanRegistrar, beans, doWithApplicationContext, doWithDynamicMethods, doWithSpring, doWithSpring, getApplicationContext, getConfig, getManager, onChange, onConfigChange, onShutdown, onStartup, setApplicationContext |