
public class AbstractModletCommand.CommandLineClassLoader extends URLClassLoader
| Constructor and Description |
|---|
AbstractModletCommand.CommandLineClassLoader(CommandLine commandLine)
Creates a new
CommandLineClassLoader taking a command line backing the class loader. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the class loader.
|
protected void |
finalize()
Removes temporary resources.
|
URL |
findResource(String name)
Finds a resource with a given name.
|
Enumeration<URL> |
findResources(String name)
Finds all resources matching a given name.
|
Modlets |
getExcludedModlets()
Gets the
Modlets excluded by the instance. |
addURL, definePackage, findClass, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic AbstractModletCommand.CommandLineClassLoader(CommandLine commandLine) throws CommandExecutionException
CommandLineClassLoader taking a command line backing the class loader.commandLine - The command line backing the class loader.NullPointerException - if commandLine is null.CommandExecutionException - if processing commandLine fails.public Modlets getExcludedModlets()
Modlets excluded by the instance.Modlets excluded by the instance.public URL findResource(String name)
findResource in class URLClassLoadername - The name of the resource to search.URL object for reading the resource or null, if no resource matching name is
found.public Enumeration<URL> findResources(String name) throws IOException
findResources in class URLClassLoadername - The name of the resources to search.URL objects of resources matching name.IOException - if getting resources fails.@IgnoreJRERequirement public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class URLClassLoaderIOException - if closing the class loader fails.Copyright © 2005–2016 The JOMC Project. All rights reserved.