org.codehaus.groovy.grails.commons
Class TagLibArtefactHandler
java.lang.Object
org.codehaus.groovy.grails.commons.ArtefactHandlerAdapter
org.codehaus.groovy.grails.commons.TagLibArtefactHandler
- All Implemented Interfaces:
- ArtefactHandler
public class TagLibArtefactHandler
- extends ArtefactHandlerAdapter
An ArtefactHandlerAdapter that configures tag libraries within namespaces in Grails
- Since:
- 0.5
- Author:
- Marc Palmer (marc@anyware.co.uk), Graeme Rocher, a.shneyderman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PLUGIN_NAME
public static final String PLUGIN_NAME
- See Also:
- Constant Field Values
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
TagLibArtefactHandler
public TagLibArtefactHandler()
getPluginName
public String getPluginName()
- Description copied from interface:
ArtefactHandler
- Obtains the plugin name that deals with this artefact
- Specified by:
getPluginName
in interface ArtefactHandler
- Overrides:
getPluginName
in class ArtefactHandlerAdapter
- Returns:
- The plugin name or null if there isn't one
initialize
public void initialize(ArtefactInfo artefacts)
- Creates a map of tags (keyed on "${namespace}:${tagName}") to tag libraries
- Specified by:
initialize
in interface ArtefactHandler
- Overrides:
initialize
in class ArtefactHandlerAdapter
- Parameters:
artefacts
- The collection of artefact classes for this handler
getArtefactForFeature
public GrailsClass getArtefactForFeature(Object feature)
- This will look-up a tag library by using either a full qualified tag name such as g:link or via namespace such as "g"
- Specified by:
getArtefactForFeature
in interface ArtefactHandler
- Overrides:
getArtefactForFeature
in class ArtefactHandlerAdapter
- Parameters:
feature
- The tag name or namespace
- Returns:
- A GrailsClass instance representing the tag library
Copyright (c) 2005-2009 The Grails project