public class CloseableClassLoader extends ClassLoader implements Closeable
ClassLoader
that implements Closeable
for resource cleanup. All classloading is
done by the delegate ClassLoader
.Constructor and Description |
---|
CloseableClassLoader(ClassLoader delegate,
Closeable closeable) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public CloseableClassLoader(ClassLoader delegate, Closeable closeable)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.