Class TldCache


  • public class TldCache
    extends java.lang.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.
    • Constructor Summary

      Constructors 
      Constructor Description
      TldCache​(ServletContext servletContext, java.util.Map<java.lang.String,​org.apache.tomcat.util.descriptor.tld.TldResourcePath> uriTldResourcePathMap, java.util.Map<org.apache.tomcat.util.descriptor.tld.TldResourcePath,​org.apache.tomcat.util.descriptor.tld.TaglibXml> tldResourcePathTaglibXmlMap)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TldCache getInstance​(ServletContext servletContext)  
      org.apache.tomcat.util.descriptor.tld.TaglibXml getTaglibXml​(org.apache.tomcat.util.descriptor.tld.TldResourcePath tldResourcePath)  
      org.apache.tomcat.util.descriptor.tld.TldResourcePath getTldResourcePath​(java.lang.String uri)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SERVLET_CONTEXT_ATTRIBUTE_NAME

        public static final java.lang.String SERVLET_CONTEXT_ATTRIBUTE_NAME
    • Constructor Detail

      • TldCache

        public TldCache​(ServletContext servletContext,
                        java.util.Map<java.lang.String,​org.apache.tomcat.util.descriptor.tld.TldResourcePath> uriTldResourcePathMap,
                        java.util.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​(java.lang.String uri)
      • getTaglibXml

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