@Test public void testClose() throws Exception { classLoaderResolver.resolve(new MavenCoordinate(FOO, BAR, QUX, JAR)); classLoaderResolver.close(); }
public void close() throws IOException { for (ClassLoader classLoader : classLoaders.values()) { if (classLoader instanceof Closeable) { ((Closeable) classLoader).close(); } } }
ClassLoaderResolver implements Closeable { public void close() throws IOException { for (ClassLoader classLoader : classLoaders.values()) { if (classLoader instanceof Closeable) { ((Closeable) classLoader).close(); } } } }
ClassLoaderResolver implements Closeable { public void close() throws IOException { for (ClassLoader classLoader : classLoaders.values()) { if (classLoader instanceof Closeable) { ((Closeable) classLoader).close(); } } } ClassLoaderResolver(Log log, RepositorySystem repositorySystem, RepositorySystemSession repositorySystemSession, List<RemoteRepository> remoteRepositories); }
ClassLoaderResolver implements Closeable { public void close() throws IOException { for (ClassLoader classLoader : classLoaders.values()) { if (classLoader instanceof Closeable) { ((Closeable) classLoader).close(); } } } ClassLoaderResolver(Log log, RepositorySystem repositorySystem, RepositorySystemSession repositorySystemSession, List<RemoteRepository> remoteRepositories); ClassLoader resolve(MavenCoordinate mavenCoordinate); void close(); }
ClassLoaderResolver implements Closeable { public void close() throws IOException { for (ClassLoader classLoader : classLoaders.values()) { if (classLoader instanceof Closeable) { ((Closeable) classLoader).close(); } } } ClassLoaderResolver(Log log, RepositorySystem repositorySystem, RepositorySystemSession repositorySystemSession, List<RemoteRepository> remoteRepositories); ClassLoader resolve(MavenCoordinate mavenCoordinate); void close();  }