/** {@inheritDoc} */ @Override public Thread newThread(@NotNull Runnable r) { Thread curThread = Thread.currentThread(); ClassLoader oldLdr = curThread.getContextClassLoader(); curThread.setContextClassLoader(IgfsThreadFactory.class.getClassLoader()); try { return super.newThread(r); } finally { curThread.setContextClassLoader(oldLdr); } }
/** {@inheritDoc} */ @Override public Thread newThread(@NotNull Runnable r) { Thread curThread = Thread.currentThread(); ClassLoader oldLdr = curThread.getContextClassLoader(); curThread.setContextClassLoader(IgfsThreadFactory.class.getClassLoader()); try { return super.newThread(r); } finally { curThread.setContextClassLoader(oldLdr); } }