@groovy.transform.CompileStatic class TagLibraryResolverImpl extends java.lang.Object implements BeanClassLoaderAware, GrailsApplicationAware, ResourceLoaderAware, ServletContextAware, TagLibraryResolver
Resolves all of the available tag libraries from web.xml and all available JAR files. Kudos to the Freemarker (http://freemarker.sourceforge.net/) library for providing the inspiration for this code.
Type | Name and description |
---|---|
java.lang.ClassLoader |
classLoader |
GrailsApplication |
grailsApplication |
boolean |
initialized |
ResourceLoader |
resourceLoader |
ServletContext |
servletContext |
java.lang.String[] |
tldScanPatterns |
Constructor and description |
---|
TagLibraryResolverImpl
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.util.List<java.net.URL> |
getJarsFromServletContext() |
|
protected java.io.InputStream |
getTldFromServletContext(java.lang.String loc) |
|
protected Resource |
getWebXmlFromServletContext() |
|
void |
initialize() |
|
protected java.net.URLClassLoader |
resolveRootLoader() Obtains a reference to the first parent classloader that is a URLClassLoader and contains some URLs |
|
JspTagLib |
resolveTagLibrary(java.lang.String uri) Resolves a JspTagLib instance for the given URI |
|
void |
setBeanClassLoader(java.lang.ClassLoader classLoader) |
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() |
Obtains a reference to the first parent classloader that is a URLClassLoader and contains some URLs
Resolves a JspTagLib instance for the given URI
Groovy Documentation