|
||||||||||
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
net.dpml.lang.StandardClassLoader
public class StandardClassLoader
A named classloader.
Constructor Summary | |
---|---|
StandardClassLoader(String name,
Category category,
URL[] urls,
ClassLoader parent)
Creation of a new classloader. |
Method Summary | |
---|---|
static ClassLoader |
buildClassLoader(Logger logger,
String name,
Category category,
ClassLoader parent,
URI[] uris)
Internal utility class to build a classloader. |
String |
getAnnotations()
Return a string representation of the classloader. |
Category |
getCategory()
Return the classloader category |
protected void |
listClasspath(StringBuffer buffer)
Internal operation to list the classloader classpath. |
protected void |
listClasspath(StringBuffer buffer,
ClassLoader classloader)
Internal operation to list a classloader classpath. |
String |
toString()
Return a string representing of the classloader. |
String |
toString(boolean expanded)
Return a string representing of the classloader. |
static String |
toString(ClassLoader primary,
ClassLoader secondary)
Return a string representing a report fo the common classloader chain following by the primary annd seciondarty classloaders. |
static URL[] |
toURLs(URI[] uris)
Convert a sequence of URIs to URLs. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StandardClassLoader(String name, Category category, URL[] urls, ClassLoader parent)
name
- a name identifying the plugincategory
- the classloader category identifierurls
- an array of urls to add to the classloaderparent
- the parent classloaderMethod Detail |
---|
public static ClassLoader buildClassLoader(Logger logger, String name, Category category, ClassLoader parent, URI[] uris) throws IOException
logger
- the logging channelname
- the name identifying the classloadercategory
- the category that this classloader is handlingparent
- the parent classloaderuris
- the uris to assign as classloader content
IOException
- if an I/O error occurspublic static URL[] toURLs(URI[] uris) throws IOException
uris
- the uris to convert
IOException
- of a transformation error occurspublic Category getCategory()
public String getAnnotations()
public String toString(boolean expanded)
expanded
- if true return an expanded representation of the classloader
public String toString()
toString
in class Object
protected void listClasspath(StringBuffer buffer)
buffer
- the buffer to list toprotected void listClasspath(StringBuffer buffer, ClassLoader classloader)
buffer
- the buffer to list toclassloader
- the classloader to listpublic static String toString(ClassLoader primary, ClassLoader secondary)
primary
- the primary classloadersecondary
- the secondary classloader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |