Discover the name of class that implements ExpressionFactory. @param tccl ClassLoader @return Class name. There is default, so it is never null.
(ClassLoader tccl)
| 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 |
no test coverage detected