Returns the TldCache instance for the given servlet context. @param servletContext the servlet context @return the TldCache instance
(ServletContext servletContext)
| 73 | * @return the TldCache instance |
| 74 | */ |
| 75 | public static TldCache getInstance(ServletContext servletContext) { |
| 76 | if (servletContext == null) { |
| 77 | throw new IllegalArgumentException( |
| 78 | Localizer.getMessage("org.apache.jasper.compiler.TldCache.servletContextNull")); |
| 79 | } |
| 80 | return (TldCache) servletContext.getAttribute(SERVLET_CONTEXT_ATTRIBUTE_NAME); |
| 81 | } |
| 82 | |
| 83 | |
| 84 | /** |
no test coverage detected