| Modifier and Type | Field and Description |
|---|---|
| private LinkedHashMap | |
| private final boolean | _lookInOsgiFirst
look in OSGi first? |
| private static final IOSGiClassLoaderAdapter | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| protected Class | findClass(String
The binary name of the class name)Overrides java. Finds the class with the specified binary name. |
| public Bundle | Returns: TheBundle object associated with this
BundleReference.Implements org. Returns the |
| public URL | getResource(String
The resource name name)Overrides java. Finds the resource with the given name. |
| public Enumeration | getResources(String
The resource name name)Overrides java. Todo optimize: we should not have to look for the resources everywhere until called for it. |
| public boolean | |
| private List |
| _libraries | back to summary |
|---|---|
| private LinkedHashMap<Bundle, ClassLoader> _libraries | |
| _lookInOsgiFirst | back to summary |
|---|---|
| private final boolean _lookInOsgiFirst look in OSGi first? true by default for now. we could look in jruby first if that makes more sense. | |
| ADAPTER | back to summary |
|---|---|
| private static final IOSGiClassLoaderAdapter ADAPTER | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| JRubyOSGiBundleClassLoader | back to summary |
|---|---|
| public JRubyOSGiBundleClassLoader() | |
| JRubyOSGiBundleClassLoader | back to summary |
|---|---|
| public JRubyOSGiBundleClassLoader(Bundle creator) | |
| addBundle | back to summary |
|---|---|
| public void addBundle(Class<?> classInOsgiBundle) | |
| addBundle | back to summary |
|---|---|
| public boolean addBundle(Bundle bundle) | |
| findClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. Finds the class with the specified binary name.
This method should be overridden by class loader implementations that
follow the delegation model for loading classes, and will be invoked by
the
| |
| getBundle | back to summary |
|---|---|
| public Bundle getBundle() Implements org. Returns the
| |
| getResource | back to summary |
|---|---|
| public URL getResource(String name) Overrides java. Doc from java. Finds the resource with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a ' Resources in named modules are subject to the encapsulation rules
specified by | |
| getResources | back to summary |
|---|---|
| public Enumeration Overrides java. Todo optimize: we should not have to look for the resources everywhere until called for it.
| |
| removeBundle | back to summary |
|---|---|
| public boolean removeBundle(Bundle bundle) throws IOException | |
| toList | back to summary |
|---|---|
| private List | |