public class ControllerArtefactHandler extends ArtefactHandlerAdapter
Lookup controllers for uris.
This class is responsible for looking up controller classes for uris.
Lookups are cached in non-development mode, and the cache size can be controlled using the grails.urlmapping.cache.maxsize config property.
Modifiers | Name | Description |
---|---|---|
static class |
ControllerArtefactHandler.ControllerCacheKey |
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
PLUGIN_NAME |
|
static java.lang.String |
TYPE |
Fields inherited from class | Fields |
---|---|
class ArtefactHandlerAdapter |
log |
Constructor and description |
---|
ControllerArtefactHandler
() |
Type Params | Return Type | Name and description |
---|---|---|
|
GrailsClass |
getArtefactForFeature(java.lang.Object featureId) |
|
java.lang.String |
getPluginName() |
|
void |
initialize(ArtefactInfo artefacts) |
|
protected boolean |
namespaceMatches(GrailsControllerClass c, java.lang.String namespace) @param c the class to inspect |
|
protected boolean |
pluginMatches(GrailsClass c, java.lang.String pluginName, GrailsPluginManager grailsPluginManager) @param c the class to inspect |
|
void |
setGrailsApplication(GrailsApplication grailsApplication) |
Methods inherited from class | Name |
---|---|
class ArtefactHandlerAdapter |
getArtefactForFeature, getPluginName, getType, initialize, isArtefact, isArtefactClass, isArtefactGrailsClass, newArtefactClass |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
c
- the class to inspectnamespace
- a controller namespace
c
- the class to inspectpluginName
- the name of a plugingrailsPluginManager
- the plugin manager