|
||||||||||
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.apache.uima.internal.util.UIMAClassLoader
public class UIMAClassLoader
UIMAClassLoader is used as extension ClassLoader for UIMA to load additional components like annotators and resources. The classpath of the classloader is specified as string. The strategy for this ClassLoader tries to load the class itself before the classloading is delegated to the application class loader.
Constructor Summary | |
---|---|
UIMAClassLoader(java.lang.String classpath)
Creates a new UIMAClassLoader based on a classpath string |
|
UIMAClassLoader(java.lang.String classpath,
java.lang.ClassLoader parent)
Creates a new UIMAClassLoader based on a classpath string. |
|
UIMAClassLoader(java.net.URL[] classpath)
Creates a new UIMAClassLoader based on a classpath URL's |
|
UIMAClassLoader(java.net.URL[] classpath,
java.lang.ClassLoader parent)
Creates a new UIMAClassLoader based on a classpath URL's. |
Method Summary | |
---|---|
protected java.lang.Class<?> |
loadClass(java.lang.String name,
boolean resolve)
|
static java.net.URLClassLoader |
newInstance(java.net.URL[] urls)
Do not use this factory method - throws unsupportedOperationException |
static java.net.URLClassLoader |
newInstance(java.net.URL[] urls,
java.lang.ClassLoader parent)
Do not use this factory method - throws unsupportedOperationException |
static java.net.URL[] |
transformClasspath(java.lang.String classpath)
Transforms the string classpath to and URL array based classpath. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UIMAClassLoader(java.lang.String classpath) throws java.net.MalformedURLException
classpath
- a classpath string
java.net.MalformedURLException
- if a malformed URL has occurred in the classpath string.public UIMAClassLoader(java.net.URL[] classpath)
classpath
- an array of wellformed classpath URL'spublic UIMAClassLoader(java.net.URL[] classpath, java.lang.ClassLoader parent)
classpath
- an array of wellformed classpath URL'sparent
- specify the parent of the classloaderpublic UIMAClassLoader(java.lang.String classpath, java.lang.ClassLoader parent) throws java.net.MalformedURLException
classpath
- a classpath stringparent
- specify the parent of the classloader
java.net.MalformedURLException
- if a malformed URL has occurred in the classpath string.Method Detail |
---|
public static java.net.URL[] transformClasspath(java.lang.String classpath) throws java.net.MalformedURLException
classpath
- a classpath string
java.net.MalformedURLException
- if a malformed URL has occurred in the classpath string.public static java.net.URLClassLoader newInstance(java.net.URL[] urls)
public static java.net.URLClassLoader newInstance(java.net.URL[] urls, java.lang.ClassLoader parent)
protected java.lang.Class<?> loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |