org.codehaus.groovy.grails.commons
Class TagLibArtefactHandler

java.lang.Object
  extended by org.codehaus.groovy.grails.commons.ArtefactHandlerAdapter
      extended by 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

Field Summary
static String TYPE
           
 
Fields inherited from class org.codehaus.groovy.grails.commons.ArtefactHandlerAdapter
log
 
Constructor Summary
TagLibArtefactHandler()
           
 
Method Summary
 GrailsClass getArtefactForFeature(Object feature)
          Called to retrieve an artefact relating to some other key for example a URI or tag name Handlers are responsible for caching the appropriate information using the data passed to them in calls to initialize()
 void initialize(ArtefactInfo artefacts)
          Creates a map of tags (keyed on "${namespace}:${tagName}") to tag libraries
 
Methods inherited from class org.codehaus.groovy.grails.commons.ArtefactHandlerAdapter
getType, isArtefact, isArtefactClass, isArtefactGrailsClass, newArtefactClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

TagLibArtefactHandler

public TagLibArtefactHandler()
Method Detail

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)
Description copied from interface: ArtefactHandler

Called to retrieve an artefact relating to some other key for example a URI or tag name

Handlers are responsible for caching the appropriate information using the data passed to them in calls to initialize()

Specified by:
getArtefactForFeature in interface ArtefactHandler
Overrides:
getArtefactForFeature in class ArtefactHandlerAdapter
Parameters:
feature - Any object that acts as a key
Returns:
A matching artefact GrailsClass or null if there is no match for this feature ID


Copyright (c) 2005-2006 The Grails project