All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.adoptopenjdk.jitwatch.loader.DisposableURLClassLoader Maven / Gradle / Ivy

Go to download

A Maven plugin that scans the project artifact and its dependencies for methods that cannot be inlined by the JIT compiler. It uses the JarScan utility from the JITWatch project to do that. See https://github.com/AdoptOpenJDK/jitwatch .

There is a newer version: 1.1
Show newest version
/*
 * Copyright (c) 2013, 2014 Chris Newland.
 * Licensed under https://github.com/AdoptOpenJDK/jitwatch/blob/master/LICENSE-BSD
 * Instructions: https://github.com/AdoptOpenJDK/jitwatch/wiki
 */
package org.adoptopenjdk.jitwatch.loader;

import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class DisposableURLClassLoader extends URLClassLoader
{
	private List urlList = new ArrayList<>();
	
	public DisposableURLClassLoader(final List urls)
	{
		super(urls.toArray(new URL[urls.size()]));
		
		urlList.addAll(urls);
	}
	
	public List getURLListCopy()
	{
		return Collections.unmodifiableList(urlList);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy