MCPcopy Create free account
hub / github.com/apache/tomcat / isDefaultLoader

Method isDefaultLoader

java/org/apache/catalina/storeconfig/LoaderSF.java:67–74  ·  view source on GitHub ↗

Is this an instance of the default Loader configuration, with all-default properties? @param loader Loader to be tested @return true if this is an instance of the default loader

(Loader loader)

Source from the content-addressed store, hash-verified

65 * @return <code>true</code> if this is an instance of the default loader
66 */
67 protected boolean isDefaultLoader(Loader loader) {
68
69 if (!(loader instanceof WebappLoader wloader)) {
70 return false;
71 }
72 return (!wloader.getDelegate()) && wloader.getJakartaConverter() == null &&
73 wloader.getLoaderClass().equals(ParallelWebappClassLoader.class.getName());
74 }
75}

Callers 1

storeMethod · 0.95

Calls 5

getJakartaConverterMethod · 0.80
getLoaderClassMethod · 0.80
getDelegateMethod · 0.65
equalsMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected