Class TldCache


  • public class TldCache
    extends Object
    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 Detail

      • SERVLET_CONTEXT_ATTRIBUTE_NAME

        public static final String SERVLET_CONTEXT_ATTRIBUTE_NAME
    • Constructor Detail

      • TldCache

        public TldCache​(ServletContext servletContext,
                        Map<String,org.apache.tomcat.util.descriptor.tld.TldResourcePath> uriTldResourcePathMap,
                        Map<org.apache.tomcat.util.descriptor.tld.TldResourcePath,org.apache.tomcat.util.descriptor.tld.TaglibXml> tldResourcePathTaglibXmlMap)
    • Method Detail

      • getTldResourcePath

        public org.apache.tomcat.util.descriptor.tld.TldResourcePath getTldResourcePath​(String uri)
      • getTaglibXml

        public org.apache.tomcat.util.descriptor.tld.TaglibXml getTaglibXml​(org.apache.tomcat.util.descriptor.tld.TldResourcePath tldResourcePath)
                                                                     throws JasperException
        Throws:
        JasperException