{@inheritDoc} IMPLEMENTATION NOTE : Servlets whose classnames begin with org.apache.catalina. (so-called "container" servlets) are loaded by the same classloader that loaded this class, rather than the classloader for the current web application. This gives such classes access
()
| 702 | * classes loaded for web applications. |
| 703 | */ |
| 704 | @Override |
| 705 | public synchronized void load() throws ServletException { |
| 706 | instance = loadServlet(); |
| 707 | |
| 708 | if (!instanceInitialized) { |
| 709 | initServlet(instance); |
| 710 | } |
| 711 | |
| 712 | if (isJspServlet) { |
| 713 | StringBuilder oname = new StringBuilder(getDomain()); |
| 714 | |
| 715 | oname.append(":type=JspMonitor"); |
| 716 | |
| 717 | oname.append(getWebModuleKeyProperties()); |
| 718 | |
| 719 | oname.append(",name="); |
| 720 | oname.append(getName()); |
| 721 | |
| 722 | oname.append(getJ2EEKeyProperties()); |
| 723 | |
| 724 | try { |
| 725 | jspMonitorON = new ObjectName(oname.toString()); |
| 726 | Registry.getRegistry(null).registerComponent(instance, jspMonitorON, null); |
| 727 | } catch (Exception e) { |
| 728 | log.warn(sm.getString("standardWrapper.jspMonitorError", instance), e); |
| 729 | } |
| 730 | } |
| 731 | } |
| 732 | |
| 733 | |
| 734 | /** |
nothing calls this directly
no test coverage detected