Package jenkins.util

Class ContextResettingExecutorService

  • All Implemented Interfaces:
    Executor, ExecutorService

    public class ContextResettingExecutorService
    extends InterceptingExecutorService
    ExecutorService wrapper that resets the context classloader. This protects an executor service from poorly written callable that doesn't restore thread states correctly.
    Author:
    Kohsuke Kawaguchi