A utility class for temporarily changing environment.
| Type Params | Return Type | Name and description |
|---|---|---|
<V> |
static V |
withContextClassLoader(java.lang.ClassLoader classLoader, groovy.lang.Closure<V> closure)Change context class loader of the current thread while running the closure. |
<V> |
static V |
withSystemProperties(java.util.Map<java.lang.String, java.lang.String> props, groovy.lang.Closure<V> closure)Change system properties while running the closure. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Change context class loader of the current thread while running the closure.
Change system properties while running the closure.