public class UIMAClassLoader extends URLClassLoader
| Constructor and Description |
|---|
UIMAClassLoader(String classpath)
Creates a new UIMAClassLoader based on a classpath string
|
UIMAClassLoader(String classpath,
ClassLoader parent)
Creates a new UIMAClassLoader based on a classpath string.
|
UIMAClassLoader(URL[] classpath)
Creates a new UIMAClassLoader based on a classpath URL's
|
UIMAClassLoader(URL[] classpath,
ClassLoader parent)
Creates a new UIMAClassLoader based on a classpath URL's.
|
| Modifier and Type | Method and Description |
|---|---|
URL |
getResource(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
static URLClassLoader |
newInstance(URL[] urls)
Do not use this factory method - throws unsupportedOperationException
|
static URLClassLoader |
newInstance(URL[] urls,
ClassLoader parent)
Do not use this factory method - throws unsupportedOperationException
|
static URL[] |
transformClasspath(String classpath)
Transforms the string classpath to a URL array based classpath.
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLsdefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic UIMAClassLoader(String classpath) throws MalformedURLException
classpath - a classpath stringMalformedURLException - if a malformed URL has occurred in the classpath string.public UIMAClassLoader(URL[] classpath)
classpath - an array of wellformed classpath URL'spublic UIMAClassLoader(URL[] classpath, ClassLoader parent)
classpath - an array of wellformed classpath URL'sparent - specify the parent of the classloaderpublic UIMAClassLoader(String classpath, ClassLoader parent) throws MalformedURLException
classpath - a classpath stringparent - specify the parent of the classloaderMalformedURLException - if a malformed URL has occurred in the classpath string.public static URL[] transformClasspath(String classpath) throws MalformedURLException
classpath - a classpath stringMalformedURLException - if a malformed URL has occurred in the classpath string.public static URLClassLoader newInstance(URL[] urls)
urls - -UnsupportedOperationException - -public static URLClassLoader newInstance(URL[] urls, ClassLoader parent)
urls - -parent - -UnsupportedOperationException - -protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionpublic URL getResource(String name)
getResource in class ClassLoaderCopyright © 2018. All rights reserved.