public class TagLibArtefactHandler extends ArtefactHandlerAdapter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PLUGIN_NAME |
static java.lang.String |
TYPE |
Constructor and Description |
---|
TagLibArtefactHandler() |
Modifier and Type | Method and Description |
---|---|
GrailsClass |
getArtefactForFeature(java.lang.Object feature)
Looks up a tag library by using either a full qualified tag name such as g:link or
via namespace such as "g".
|
java.lang.String |
getPluginName()
Obtains the plugin name that deals with this artefact.
|
void |
initialize(ArtefactInfo artefacts)
Creates a map of tags (keyed on "${namespace}:${tagName}") to tag libraries.
|
getType, isArtefact, isArtefactClass, isArtefactGrailsClass, newArtefactClass
public static final java.lang.String PLUGIN_NAME
public static final java.lang.String TYPE
public java.lang.String getPluginName()
ArtefactHandler
getPluginName
in interface ArtefactHandler
getPluginName
in class ArtefactHandlerAdapter
public void initialize(ArtefactInfo artefacts)
initialize
in interface ArtefactHandler
initialize
in class ArtefactHandlerAdapter
artefacts
- The collection of artefact classes for this handlerpublic GrailsClass getArtefactForFeature(java.lang.Object feature)
getArtefactForFeature
in interface ArtefactHandler
getArtefactForFeature
in class ArtefactHandlerAdapter
feature
- The tag name or namespace