Release any internal references to previously created LogFactory instances that have been associated with the specified class loader (if any), after calling the instance method release() on each of them. @param classLoader ClassLoader for which to release the LogFactory
(ClassLoader classLoader)
| 208 | * @param classLoader ClassLoader for which to release the LogFactory |
| 209 | */ |
| 210 | public static void release(ClassLoader classLoader) { |
| 211 | // JULI's log manager looks at the current classLoader so there is no |
| 212 | // need to use the passed in classLoader, the default implementation |
| 213 | // does not so call reset in that case will break things |
| 214 | if (!LogManager.getLogManager().getClass().getName().equals("java.util.logging.LogManager")) { |
| 215 | LogManager.getLogManager().reset(); |
| 216 | } |
| 217 | } |
| 218 | } |
no test coverage detected