public class EclipseErrorHandler extends Object implements AdaptorHook, HookConfigurator
| Constructor and Description |
|---|
EclipseErrorHandler() |
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 contextBundleExceptionpublic 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 contextBundleExceptionpublic 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 addProperties(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 URLConnection mapLocationToURLConnection(String location) throws 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 URLConnectionIOExceptionpublic void handleRuntimeError(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 addHooks(HookRegistry hookRegistry)
HookConfiguratoraddHooks in interface HookConfiguratorhookRegistry - the hook registry used to add hookspublic 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 AdaptorHookpublic void initialize(BaseAdaptor initAdaptor)
AdaptorHookFrameworkAdaptor.initialize(EventPublisher).
This method allows an adaptor hook to save the adaptor object for later.initialize in interface AdaptorHookinitAdaptor - the adaptor object associated with this AdaptorHook.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.