public class JasperClassLoader extends URLClassLoader
| Constructor and Description |
|---|
JasperClassLoader(org.osgi.framework.Bundle bundle,
ClassLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Enumeration<URL> |
findResources(String name) |
URL |
getResource(String name)
Delegate to bundle class loader.
|
Enumeration<URL> |
getResources(String name)
Delegate to bundle class loader.
|
URL[] |
getURLs() |
int |
hashCode() |
Class<?> |
loadClass(String name)
Delegate to bundle class loader.
|
List<URL> |
scanBundlesInClassSpace(String directory,
String filePattern,
boolean recursive)
Scans the imported and required bundles for matching resources.
|
String |
toString() |
addURL, close, definePackage, findClass, findResource, getPermissions, getResourceAsStream, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic JasperClassLoader(org.osgi.framework.Bundle bundle,
ClassLoader parent)
public URL getResource(String name)
getResource in class ClassLoaderBundleClassLoader.getResource(String)public Enumeration<URL> getResources(String name) throws IOException
getResources in class ClassLoaderIOExceptionBundleClassLoader.getResources(String)public Enumeration<URL> findResources(String name) throws IOException
findResources in class URLClassLoaderIOExceptionpublic Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionClassLoader.loadClass(String)public URL[] getURLs()
getURLs in class URLClassLoaderpublic List<URL> scanBundlesInClassSpace(String directory, String filePattern, boolean recursive)
directory - the directory within the imported/required bundle where to
perform the lookup (e.g. "META-INF/")filePattern - the file pattern to lookup (e.g. "*.tld")recursive - indicates whether the lookup should be recursive, i.e. if it
will drill into child directoriesBundle.findEntries(String, String, boolean) methodCopyright © 2006–2021 OPS4J - Open Participation Software for Java. All rights reserved.