MCPcopy Index your code
hub / github.com/apache/tomcat / load

Method load

java/org/apache/catalina/core/StandardWrapper.java:704–731  ·  view source on GitHub ↗

{@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

()

Source from the content-addressed store, hash-verified

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 /**

Callers

nothing calls this directly

Calls 12

loadServletMethod · 0.95
initServletMethod · 0.95
getJ2EEKeyPropertiesMethod · 0.95
getRegistryMethod · 0.95
getDomainMethod · 0.65
getNameMethod · 0.65
toStringMethod · 0.65
registerComponentMethod · 0.65
warnMethod · 0.65
getStringMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected