Groovy Documentation

## org.codehaus.groovy.grails.commons
[Java] Class TagLibArtefactHandler

    java.lang.Object
      org.codehaus.groovy.grails.commons.ArtefactHandlerAdapter
          org.codehaus.groovy.grails.commons.TagLibArtefactHandler

    public class TagLibArtefactHandler
    extends ArtefactHandlerAdapter

Configures tag libraries within namespaces in Grails.

Authors:
  Marc Palmer (marc@anyware.co.uk)
  Graeme Rocher
  a.shneyderman

Since:
  0.5

Field Summary
`static java.lang.String` | `PLUGIN_NAME`
`static java.lang.String` | `TYPE`

Fields inherited from class ArtefactHandlerAdapter
log

Constructor Summary
`TagLibArtefactHandler()`

Method Summary
`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()`
`void` | `initialize(ArtefactInfo artefacts)` Creates a map of tags (keyed on "${namespace}:${tagName}") to tag libraries.

Methods inherited from class ArtefactHandlerAdapter
getArtefactForFeature, getPluginName, getType, initialize, isArtefact, isArtefactClass, isArtefactGrailsClass, newArtefactClass

Field Detail

### PLUGIN_NAME

    public static final java.lang.String PLUGIN_NAME

### TYPE

    public static final java.lang.String TYPE

Constructor Detail

### TagLibArtefactHandler

    public TagLibArtefactHandler()

Method Detail

### getArtefactForFeature

    @Override
    public 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".
  Parameters:
    `feature` - The tag name or namespace
  Returns:
    A GrailsClass instance representing the tag library

### getPluginName

    @Override
    public java.lang.String getPluginName()

### initialize

    @Override
    public void initialize(ArtefactInfo artefacts)

  Creates a map of tags (keyed on "${namespace}:${tagName}") to tag libraries.

Groovy Documentation