|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter
public class EclipseLazyStarter
| Constructor Summary | |
|---|---|
EclipseLazyStarter()
|
|
| Method Summary | |
|---|---|
void |
addHooks(HookRegistry hookRegistry)
Adds hooks to the specified hook registry. |
void |
addProperties(java.util.Properties properties)
Gets called by the adaptor during FrameworkAdaptor.getProperties(). |
FrameworkLog |
createFrameworkLog()
Gets called by the adaptor during FrameworkAdaptor.getFrameworkLog(). |
void |
frameworkStart(BundleContext context)
Gets called by the adaptor during FrameworkAdaptor.frameworkStart(BundleContext). |
void |
frameworkStop(BundleContext context)
Gets called by the adaptor during FrameworkAdaptor.frameworkStop(BundleContext). |
void |
frameworkStopping(BundleContext context)
Gets called by the adaptor during FrameworkAdaptor.frameworkStopping(BundleContext). |
void |
handleRuntimeError(java.lang.Throwable error)
Gets called by the adaptor during FrameworkAdaptor.handleRuntimeError(Throwable). |
void |
initialize(BaseAdaptor baseAdaptor)
Gets called by the adaptor during FrameworkAdaptor.initialize(EventPublisher). |
java.net.URLConnection |
mapLocationToURLConnection(java.lang.String location)
Gets called by the adaptor during FrameworkAdaptor.mapLocationToURLConnection(String). |
void |
postFindLocalClass(java.lang.String name,
java.lang.Class clazz,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalClass(String) after
searching the local classloader for a class. |
void |
postFindLocalResource(java.lang.String name,
java.net.URL resource,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalResource(String) after
searching the local classloader for a resource. |
void |
preFindLocalClass(java.lang.String name,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalClass(String) before
searching the local classloader for a class. |
void |
preFindLocalResource(java.lang.String name,
ClasspathManager manager)
Gets called by a classpath manager during ClasspathManager.findLocalResource(String) before
searching the local classloader for a resource. |
void |
recordClassDefine(java.lang.String name,
java.lang.Class clazz,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry,
ClasspathManager manager)
Gets called by a classpath manager after a successfully defining a class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EclipseLazyStarter()
| Method Detail |
|---|
public void preFindLocalClass(java.lang.String name,
ClasspathManager manager)
throws java.lang.ClassNotFoundException
ClassLoadingStatsHookClasspathManager.findLocalClass(String) before
searching the local classloader for a class. A classpath manager will call this method for
each configured class loading stat hook.
preFindLocalClass in interface ClassLoadingStatsHookname - the name of the requested classmanager - the classpath manager used to find and load the requested class
java.lang.ClassNotFoundException - to prevent the requested class from loading
public void postFindLocalClass(java.lang.String name,
java.lang.Class clazz,
ClasspathManager manager)
throws java.lang.ClassNotFoundException
ClassLoadingStatsHookClasspathManager.findLocalClass(String) after
searching the local classloader for a class. A classpath manager will call this method for
each configured class loading stat hook.
postFindLocalClass in interface ClassLoadingStatsHookname - the name of the requested classclazz - the loaded class or null if not foundmanager - the classpath manager used to find and load the requested class
java.lang.ClassNotFoundException
public void preFindLocalResource(java.lang.String name,
ClasspathManager manager)
ClassLoadingStatsHookClasspathManager.findLocalResource(String) before
searching the local classloader for a resource. A classpath manager will call this method for
each configured class loading stat hook.
preFindLocalResource in interface ClassLoadingStatsHookname - the name of the requested resourcemanager - the classpath manager used to find the requested resource
public void postFindLocalResource(java.lang.String name,
java.net.URL resource,
ClasspathManager manager)
ClassLoadingStatsHookClasspathManager.findLocalResource(String) after
searching the local classloader for a resource. A classpath manager will call this method for
each configured class loading stat hook.
postFindLocalResource in interface ClassLoadingStatsHookname - the name of the requested resourceresource - the URL to the requested resource or null if not foundmanager - the classpath manager used to find the requested resource
public void recordClassDefine(java.lang.String name,
java.lang.Class clazz,
byte[] classbytes,
ClasspathEntry classpathEntry,
BundleEntry entry,
ClasspathManager manager)
ClassLoadingStatsHook
recordClassDefine in interface ClassLoadingStatsHookname - the name of the class that got definedclazz - the class object that got definedclassbytes - the class bytes used to define the classclasspathEntry - the ClasspathEntry where the class bytes got read fromentry - the BundleEntyr source of the class bytesmanager - the classpath manager used to define the classpublic void addHooks(HookRegistry hookRegistry)
HookConfigurator
addHooks in interface HookConfiguratorhookRegistry - the hook registry used to add hookspublic void addProperties(java.util.Properties properties)
AdaptorHookFrameworkAdaptor.getProperties().
This method allows an adaptor hook to add property values to the adaptor
properties object.
addProperties in interface AdaptorHookproperties - the adaptor properties object.public FrameworkLog createFrameworkLog()
AdaptorHookFrameworkAdaptor.getFrameworkLog().
The adaptor will call this method for each configured adaptor hook until one
adaptor hook returns a non-null value. If no adaptor hook returns a non-null value
then the adaptor will return null.
createFrameworkLog in interface AdaptorHook
public void frameworkStart(BundleContext context)
throws BundleException
AdaptorHookFrameworkAdaptor.frameworkStart(BundleContext).
This method allows an adaptor hook to execute code when the framework is starting
(e.g. to register services).
frameworkStart in interface AdaptorHookcontext - the system bundle context
BundleException - if an error occurs
public void frameworkStop(BundleContext context)
throws BundleException
AdaptorHookFrameworkAdaptor.frameworkStop(BundleContext).
This method allows an adaptor hook to execute code when the framework is stopped
(e.g. to unregister services).
frameworkStop in interface AdaptorHookcontext - the system bundle context
BundleException - if an error occurs.public void frameworkStopping(BundleContext context)
AdaptorHookFrameworkAdaptor.frameworkStopping(BundleContext).
This method allows an adaptor hook to execute code when the framework is about to start
the shutdown process.
frameworkStopping in interface AdaptorHookcontext - the system bundle contextpublic void handleRuntimeError(java.lang.Throwable error)
AdaptorHookFrameworkAdaptor.handleRuntimeError(Throwable).
The adaptor will call this method for each configured adaptor hook.
handleRuntimeError in interface AdaptorHookerror - the unexpected error that occured.public void initialize(BaseAdaptor baseAdaptor)
AdaptorHookFrameworkAdaptor.initialize(EventPublisher).
This method allows an adaptor hook to save the adaptor object for later.
initialize in interface AdaptorHookbaseAdaptor - the adaptor object associated with this AdaptorHook.
public java.net.URLConnection mapLocationToURLConnection(java.lang.String location)
throws java.io.IOException
AdaptorHookFrameworkAdaptor.mapLocationToURLConnection(String).
The adaptor will call this method for each configured adaptor hook until one
adaptor hook returns a non-null value. If no adaptor hook returns a non-null value
then the adaptor will perform the default behavior.
mapLocationToURLConnection in interface AdaptorHooklocation - a bundle location string to be converted to a URLConnection
java.io.IOException - if an error occured creating the URLConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||