Top Fields Constructors Methods
org.eclipse.jetty.util.thread

public Class ThreadClassLoaderScope

extends Object
implements Closeable
Class Inheritance
All Implemented Interfaces
java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.Closeable

Field Summary

Modifier and TypeField and Description
private final ClassLoader
private final ClassLoader

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

public ClassLoader
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

oldback to summary
private final ClassLoader old
scopedClassLoaderback to summary
private final ClassLoader scopedClassLoader

Constructor Detail

ThreadClassLoaderScopeback to summary
public ThreadClassLoaderScope(ClassLoader cl)

Method Detail

closeback to summary
public void close()

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
getScopedClassLoaderback to summary
public ClassLoader getScopedClassLoader()