public class TagLibraryLookup
Looks up tag library instances.
Modifiers | Name | Description |
---|---|---|
protected ApplicationContext |
applicationContext |
|
protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.Object>>> |
encodeAsForTagNamespaces |
|
protected GrailsApplication |
grailsApplication |
|
protected java.util.Map<java.lang.String, NamespacedTagDispatcher> |
namespaceDispatchers |
|
protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.Object>> |
tagNamespaces |
|
protected java.util.Map<java.lang.String, java.util.Set<java.lang.String>> |
tagsThatReturnObjectForNamespace |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
afterPropertiesSet() |
|
public boolean |
doesTagReturnObject(java.lang.String namespace, java.lang.String tagName) |
|
public java.util.Set<java.lang.String> |
getAvailableNamespaces()
|
|
public java.util.Set<java.lang.String> |
getAvailableTags(java.lang.String namespace) |
|
public java.util.Map<java.lang.String, java.lang.Object> |
getEncodeAsForTag(java.lang.String namespace, java.lang.String tagName) |
|
public boolean |
hasNamespace(java.lang.String namespace) Returns whether the given namespace is in use |
|
public NamespacedTagDispatcher |
lookupNamespaceDispatcher(java.lang.String namespace) Looks up a namespace dispatcher for the given namespace |
|
public groovy.lang.GroovyObject |
lookupTagLibrary(java.lang.String namespace, java.lang.String tagName) Looks up a tag library for the given namespace and tag name. |
|
protected void |
putTagLib(java.util.Map<java.lang.String, java.lang.Object> tags, java.lang.String name, GrailsTagLibClass taglib) |
|
protected void |
registerNamespaceDispatcher(java.lang.String namespace) |
|
public void |
registerTagLib(GrailsTagLibClass taglib) Registers a tag library for lookup. |
|
protected void |
registerTagLibraries() |
|
protected void |
registerTemplateNamespace() |
|
public void |
setApplicationContext(ApplicationContext applicationContext) |
|
public void |
setGrailsApplication(GrailsApplication grailsApplication) |
Methods inherited from class | Name |
---|---|
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() |
Returns whether the given namespace is in use
namespace
- The namespaceLooks up a namespace dispatcher for the given namespace
namespace
- The namespaceLooks up a tag library for the given namespace and tag name.
namespace
- The tag library namespacetagName
- The tag nameRegisters a tag library for lookup. Each of the tags in the library is mapped by namespace:name to the taglib bean. If the taglib has already been registered, this method will override the existing information and update the tags to use the new version.
taglib
- The taglib descriptor class.