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 the resource with the specified name on the URL search path.
|
Enumeration<URL> |
findResources(String name)
Returns an
Enumeration of URL s representing all of the resources on the URL search path
having the specified name. |
Modlets |
getExcludedModlets()
Gets the
Modlets excluded by the instance. |
addURL, definePackage, findClass, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, 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, setSigners
public 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 URLClassLoader
name
- The name of the resource.URL
for the resource or null
, if the resource could not be found.public Enumeration<URL> findResources(String name) throws IOException
Enumeration
of URL
s representing all of the resources on the URL search path
having the specified name.findResources
in class URLClassLoader
name
- The resource name.Enumeration
of URL
s.IOException
- if an I/O exception occurs@IgnoreJRERequirement public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class URLClassLoader
IOException
- if closing the class loader fails.Copyright © 2005-2013 The JOMC Project. All Rights Reserved.