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

Class WebappLoader

java/org/apache/catalina/loader/WebappLoader.java:57–575  ·  view source on GitHub ↗

Classloader implementation which is specialized for handling web applications in the most efficient way, while being Catalina aware (all accesses to resources are made through org.apache.catalina.WebResourceRoot). This class loader supports detection of modified Java classes, which can be us

Source from the content-addressed store, hash-verified

55 * system class loader will be used instead.
56 */
57public class WebappLoader extends LifecycleMBeanBase implements Loader {
58
59 /**
60 * Constructs a new WebappLoader.
61 */
62 public WebappLoader() {
63 }
64
65 private static final Log log = LogFactory.getLog(WebappLoader.class);
66
67 // ----------------------------------------------------- Instance Variables
68
69 /**
70 * The class loader being managed by this Loader component.
71 */
72 private WebappClassLoaderBase classLoader = null;
73
74
75 /**
76 * The Context with which this Loader has been associated.
77 */
78 private Context context = null;
79
80
81 /**
82 * The "follow standard delegation model" flag that will be used to configure our ClassLoader.
83 */
84 private boolean delegate = false;
85
86
87 /**
88 * The profile name which will be used by the converter, or null if not used. Any invalid profile value will default
89 * to the TOMCAT profile, which converts all packages used by Tomcat.
90 */
91 private String jakartaConverter = null;
92
93
94 /**
95 * The Java class name of the ClassLoader implementation to be used. This class should extend WebappClassLoaderBase,
96 * otherwise, a different loader implementation must be used.
97 */
98 private String loaderClass = ParallelWebappClassLoader.class.getName();
99
100
101 /**
102 * The string manager for this package.
103 */
104 protected static final StringManager sm = StringManager.getManager(WebappLoader.class);
105
106
107 /**
108 * The property change support for this component.
109 */
110 protected final PropertyChangeSupport support = new PropertyChangeSupport(this);
111
112
113 /**
114 * Classpath set in the loader.

Callers

nothing calls this directly

Calls 3

getLogMethod · 0.95
getManagerMethod · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected