public class Sitemesh3LayoutFinder extends java.lang.Object implements DecoratorSelector
DecoratorSelector that resolves layout paths using Grails conventions. The resolution order is:
meta.layout propertystatic layout = 'x' property/layouts/<controllerName>/<actionUri>.gsp/layouts/<controllerName>.gspapplication layout, matching the SiteMesh 2
plugin's GroovyPageLayoutFinderResults are cached by (controllerName, actionUri) outside of the DEVELOPMENT environment. Both caches are unbounded in entry count, but are naturally bounded by the number of distinct (controllerName, actionUri) pairs in the application — typically a small, fixed set.
| Constructor and description |
|---|
Sitemesh3LayoutFinder(GrailsConventionGroovyPageLocator groovyPageLocator) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.String[] |
selectDecoratorPaths(Content content, SiteMeshContext context) |
|
public void |
setCacheEnabled(boolean cacheEnabled) |
|
public void |
setDefaultDecoratorName(java.lang.String defaultDecoratorName) |
|
public void |
setGspReloadEnabled(boolean gspReloadEnabled) |
|
public void |
setLayoutCacheExpirationMillis(long layoutCacheExpirationMillis) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |