Package org.apache.felix.framework
Class BundleWiringImpl.BundleClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- org.apache.felix.framework.BundleWiringImpl.BundleClassLoader
-
- All Implemented Interfaces:
BundleReference
- Direct Known Subclasses:
BundleWiringImpl.BundleClassLoaderJava5
- Enclosing class:
- BundleWiringImpl
public static class BundleWiringImpl.BundleClassLoader extends java.security.SecureClassLoader implements BundleReference
-
-
Constructor Summary
Constructors Constructor Description BundleClassLoader(BundleWiringImpl wiring, java.lang.ClassLoader parent, Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
callWovenClassListeners(Felix felix, java.util.Set<ServiceReference<WovenClassListener>> wovenClassListeners, WovenClass wovenClass)
protected java.lang.Class
findClass(java.lang.String name)
protected java.lang.String
findLibrary(java.lang.String name)
protected java.net.URL
findResource(java.lang.String name)
protected java.util.Enumeration
findResources(java.lang.String name)
Bundle
getBundle()
Returns theBundle
object associated with thisBundleReference
.java.net.URL
getResource(java.lang.String name)
boolean
isActivationTriggered()
protected boolean
isParallel()
protected java.lang.Class
loadClass(java.lang.String name, boolean resolve)
java.lang.String
toString()
-
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass, getPermissions
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
BundleClassLoader
public BundleClassLoader(BundleWiringImpl wiring, java.lang.ClassLoader parent, Logger logger)
-
-
Method Detail
-
isParallel
protected boolean isParallel()
-
isActivationTriggered
public boolean isActivationTriggered()
-
getBundle
public Bundle getBundle()
Description copied from interface:BundleReference
Returns theBundle
object associated with thisBundleReference
.- Specified by:
getBundle
in interfaceBundleReference
- Returns:
- The
Bundle
object associated with thisBundleReference
.
-
loadClass
protected java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
- Overrides:
loadClass
in classjava.lang.ClassLoader
- Throws:
java.lang.ClassNotFoundException
-
findClass
protected java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
- Overrides:
findClass
in classjava.lang.ClassLoader
- Throws:
java.lang.ClassNotFoundException
-
callWovenClassListeners
protected void callWovenClassListeners(Felix felix, java.util.Set<ServiceReference<WovenClassListener>> wovenClassListeners, WovenClass wovenClass)
-
getResource
public java.net.URL getResource(java.lang.String name)
- Overrides:
getResource
in classjava.lang.ClassLoader
-
findResource
protected java.net.URL findResource(java.lang.String name)
- Overrides:
findResource
in classjava.lang.ClassLoader
-
findResources
protected java.util.Enumeration findResources(java.lang.String name)
- Overrides:
findResources
in classjava.lang.ClassLoader
-
findLibrary
protected java.lang.String findLibrary(java.lang.String name)
- Overrides:
findLibrary
in classjava.lang.ClassLoader
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-