|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.jomc.cli.commands.AbstractModletCommand.CommandLineClassLoader
public class AbstractModletCommand.CommandLineClassLoader
Class loader backed by a command line.
Constructor Summary | |
---|---|
AbstractModletCommand.CommandLineClassLoader(CommandLine commandLine)
Creates a new CommandLineClassLoader taking a command line backing the class loader. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 occurspublic void close() throws IOException
IOException
- if closing the class loader fails.protected void finalize() throws Throwable
finalize
in class Object
Throwable
- if finalization fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |