@groovy.transform.CompileStatic class NamespacedTagDispatcher extends groovy.lang.GroovyObjectSupport
Allows dispatching to namespaced tag libraries and is used within controllers and tag libraries to allow namespaced tags to be invoked as methods (eg. g.link(action:'foo')).
| Modifiers | Name | Description |
|---|---|---|
protected GrailsApplication |
application |
|
protected TagLibraryLookup |
lookup |
|
protected java.lang.String |
namespace |
|
protected java.lang.Class |
type |
| Constructor and description |
|---|
NamespacedTagDispatcher(java.lang.String ns, java.lang.Class callingType, GrailsApplication application, TagLibraryLookup lookup) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
methodMissing(java.lang.String name, java.lang.Object args)Every dispatcher used to be given its own ExpandoMetaClass carrying a method for each tag in the namespace, built and populated as the dispatcher was constructed. |
| Methods inherited from class | Name |
|---|---|
class groovy.lang.GroovyObjectSupport |
groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int) |
Every dispatcher used to be given its own ExpandoMetaClass carrying a method for each tag in the namespace, built and populated as the dispatcher was constructed. Tags are dispatched through the lookup instead, so no metaclass is created or written to here.