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

Method discoverClassName

java/jakarta/el/ExpressionFactory.java:321–337  ·  view source on GitHub ↗

Discover the name of class that implements ExpressionFactory. @param tccl ClassLoader @return Class name. There is default, so it is never null.

(ClassLoader tccl)

Source from the content-addressed store, hash-verified

319 * @return Class name. There is default, so it is never {@code null}.
320 */
321 private static String discoverClassName(ClassLoader tccl) {
322 // First services API
323 String className = getClassNameServices(tccl);
324 if (className == null) {
325 // Second el.properties file
326 className = getClassNameJreDir();
327 }
328 if (className == null) {
329 // Third system property
330 className = getClassNameSysProp();
331 }
332 if (className == null) {
333 // Fourth - default
334 className = "org.apache.el.ExpressionFactoryImpl";
335 }
336 return className;
337 }
338
339 private static String getClassNameServices(ClassLoader tccl) {
340

Callers 1

newInstanceMethod · 0.95

Calls 3

getClassNameServicesMethod · 0.95
getClassNameJreDirMethod · 0.95
getClassNameSysPropMethod · 0.95

Tested by

no test coverage detected