Class TldCache
java.lang.Object
org.apache.jasper.compiler.TldCache
This class caches parsed instances of TLD files to remove the need for the
same TLD to be parsed for each JSP that references it. It does not protect
against multiple threads processing the same, new TLD but it does ensure that
each all threads will use the same TLD object after parsing.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTldCache
(ServletContext servletContext, Map<String, TldResourcePath> uriTldResourcePathMap, Map<TldResourcePath, TaglibXml> tldResourcePathTaglibXmlMap) -
Method Summary
Modifier and TypeMethodDescriptionstatic TldCache
getInstance
(ServletContext servletContext) getTaglibXml
(TldResourcePath tldResourcePath) getTldResourcePath
(String uri)
-
Field Details
-
SERVLET_CONTEXT_ATTRIBUTE_NAME
-
-
Constructor Details
-
TldCache
public TldCache(ServletContext servletContext, Map<String, TldResourcePath> uriTldResourcePathMap, Map<TldResourcePath, TaglibXml> tldResourcePathTaglibXmlMap)
-
-
Method Details
-
getInstance
-
getTldResourcePath
-
getTaglibXml
- Throws:
JasperException
-