public class JRubyOSGiBundleClassLoader
extends java.lang.ClassLoader
Constructor and Description |
---|
JRubyOSGiBundleClassLoader() |
JRubyOSGiBundleClassLoader(Bundle creator) |
Modifier and Type | Method and Description |
---|---|
boolean |
addBundle(Bundle bundle) |
void |
addBundle(java.lang.Class<?> classInOsgiBundle) |
protected java.lang.Class<?> |
findClass(java.lang.String name) |
Bundle |
getBundle()
Returns the
Bundle that defined this web-application. |
java.net.URL |
getResource(java.lang.String name) |
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String name)
TODO: optimize: we should not have to look for the resources everywhere
until called for it.
|
boolean |
removeBundle(Bundle bundle) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public JRubyOSGiBundleClassLoader()
java.io.IOException
public JRubyOSGiBundleClassLoader(Bundle creator)
java.io.IOException
public void addBundle(java.lang.Class<?> classInOsgiBundle)
java.io.IOException
public boolean addBundle(Bundle bundle)
parent
- The parent classloader. In this case jrubyLoadercontext
- The WebAppContextcontributor
- The bundle that defines this web-application.java.io.IOException
public boolean removeBundle(Bundle bundle) throws java.io.IOException
parent
- The parent classloader. In this case jrubyLoadercontext
- The WebAppContextcontributor
- The bundle that defines this web-application.java.io.IOException
public Bundle getBundle()
Bundle
that defined this web-application.Bundle
object associated with this
BundleReference
.public java.util.Enumeration<java.net.URL> getResources(java.lang.String name) throws java.io.IOException
getResources
in class java.lang.ClassLoader
java.io.IOException
public java.net.URL getResource(java.lang.String name)
getResource
in class java.lang.ClassLoader
protected java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
Copyright © 2002-2009 JRuby Team. All Rights Reserved.