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 |
---|---|
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, getProtectionDomainInternal, getResourceAsStream, getURLs
defineClass, defineClass, getProtectionDomain
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public 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 ClassLoader
ClassNotFoundException
Copyright © 2006–2024 The Apache Software Foundation. All rights reserved.