|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.internal.baseadaptor.DevClassLoadingHook
public class DevClassLoadingHook
| Field Summary | |
|---|---|
static int |
HASHCODE
|
static java.lang.String |
KEY
|
| Constructor Summary | |
|---|---|
DevClassLoadingHook()
|
|
| Method Summary | |
|---|---|
boolean |
addClassPathEntry(java.util.ArrayList cpEntries,
java.lang.String cp,
ClasspathManager hostmanager,
BaseData sourcedata,
java.security.ProtectionDomain sourcedomain)
Gets called by a classpath manager when looking for ClasspathEntry objects. |
void |
addHooks(HookRegistry hookRegistry)
Adds hooks to the specified hook registry. |
boolean |
compare(KeyedElement other)
Compares this element with a specified element |
BaseClassLoader |
createClassLoader(java.lang.ClassLoader parent,
ClassLoaderDelegate delegate,
BundleProtectionDomain domain,
BaseData data,
java.lang.String[] bundleclasspath)
Gets called by a base data during BundleData.createClassLoader(ClassLoaderDelegate, BundleProtectionDomain, String[]). |
java.lang.String |
findLibrary(BaseData data,
java.lang.String libName)
Gets called by a base data during BundleData.findLibrary(String). |
java.lang.ClassLoader |
getBundleClassLoaderParent()
Gets called by the adaptor during FrameworkAdaptor.getBundleClassLoaderParent(). |
java.lang.Object |
getKey()
Returns the key for this element |
int |
getKeyHashCode()
Returns the hash code of the key |
void |
initializedClassLoader(BaseClassLoader baseClassLoader,
BaseData data)
Gets called by a classpath manager at the end of ClasspathManager.initialize(). |
byte[] |
processClass(java.lang.String name,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry,
ClasspathManager manager)
Gets called by a classpath manager before defining a class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY
public static final int HASHCODE
| Constructor Detail |
|---|
public DevClassLoadingHook()
| Method Detail |
|---|
public byte[] processClass(java.lang.String name,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry,
ClasspathManager manager)
ClassLoadingHook
processClass in interface ClassLoadingHookname - the name of the class being definedclassbytes - the bytes of the class being definedclasspathEntry - the ClasspathEntry where the class bytes have been read from.entry - the BundleEntry source of the class bytesmanager - the class path manager used to define the requested class
public boolean addClassPathEntry(java.util.ArrayList cpEntries,
java.lang.String cp,
ClasspathManager hostmanager,
BaseData sourcedata,
java.security.ProtectionDomain sourcedomain)
ClassLoadingHook
addClassPathEntry in interface ClassLoadingHookcpEntries - the list of ClasspathEntry objects currently available for the requested classpathcp - the name of the requested classpathhostmanager - the classpath manager the requested ClasspathEntry is forsourcedata - the source bundle data of the requested ClasspathEntrysourcedomain - the source domain of the requested ClasspathEntry
public java.lang.String findLibrary(BaseData data,
java.lang.String libName)
ClassLoadingHookBundleData.findLibrary(String).
A base data will call this method for each configured class loading hook until one
class loading hook returns a non-null value. If no class loading hook returns
a non-null value then the base data will return null.
findLibrary in interface ClassLoadingHookdata - the base data to find a native library for.libName - the name of the native library.
public java.lang.ClassLoader getBundleClassLoaderParent()
ClassLoadingHookFrameworkAdaptor.getBundleClassLoaderParent().
The adaptor will call this method for each configured class loading hook until one
class loading hook returns a non-null value. If no class loading hook returns
a non-null value then the adaptor will perform the default behavior.
getBundleClassLoaderParent in interface ClassLoadingHook
public BaseClassLoader createClassLoader(java.lang.ClassLoader parent,
ClassLoaderDelegate delegate,
BundleProtectionDomain domain,
BaseData data,
java.lang.String[] bundleclasspath)
ClassLoadingHookBundleData.createClassLoader(ClassLoaderDelegate, BundleProtectionDomain, String[]).
The BaseData will call this method for each configured class loading hook until one data
hook returns a non-null value. If no class loading hook returns a non-null value then a
default implemenation of BundleClassLoader will be created.
createClassLoader in interface ClassLoadingHookparent - the parent classloader for the BundleClassLoaderdelegate - the delegate for the bundle classloaderdomain - the domian for the bundle classloaderdata - the BundleData for the BundleClassLoaderbundleclasspath - the classpath for the bundle classloader
public void initializedClassLoader(BaseClassLoader baseClassLoader,
BaseData data)
ClassLoadingHookClasspathManager.initialize().
The classpath manager will call this method for each configured class loading hook after it
has been initialized.
initializedClassLoader in interface ClassLoadingHookbaseClassLoader - the newly created bundle classloaderdata - the BundleData associated with the bundle classloaderpublic void addHooks(HookRegistry hookRegistry)
HookConfigurator
addHooks in interface HookConfiguratorhookRegistry - the hook registry used to add hookspublic boolean compare(KeyedElement other)
KeyedElement
compare in interface KeyedElementother - the element to compare with
public java.lang.Object getKey()
KeyedElement
getKey in interface KeyedElementpublic int getKeyHashCode()
KeyedElement
getKeyHashCode in interface KeyedElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||