org.eclipse.core.runtime.internal.adaptor
Class EclipseLogHook
java.lang.Object
org.eclipse.core.runtime.internal.adaptor.EclipseLogHook
- All Implemented Interfaces:
- HookConfigurator, AdaptorHook
public class EclipseLogHook
- extends Object
- implements HookConfigurator, AdaptorHook
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EclipseLogHook
public EclipseLogHook()
addHooks
public void addHooks(HookRegistry hookRegistry)
- Description copied from interface:
HookConfigurator
- Adds hooks to the specified hook registry.
- Specified by:
addHooks in interface HookConfigurator
- Parameters:
hookRegistry - the hook registry used to add hooks
initialize
public void initialize(BaseAdaptor initAdaptor)
- Description copied from interface:
AdaptorHook
- Gets called by the adaptor during
FrameworkAdaptor.initialize(EventPublisher).
This method allows an adaptor hook to save the adaptor object for later.
- Specified by:
initialize in interface AdaptorHook
- Parameters:
initAdaptor - the adaptor object associated with this AdaptorHook.
frameworkStart
public void frameworkStart(BundleContext context)
throws BundleException
- Description copied from interface:
AdaptorHook
- Gets called by the adaptor during
FrameworkAdaptor.frameworkStart(BundleContext).
This method allows an adaptor hook to execute code when the framework is starting
(e.g. to register services).
- Specified by:
frameworkStart in interface AdaptorHook
- Parameters:
context - the system bundle context
- Throws:
BundleException
frameworkStop
public void frameworkStop(BundleContext context)
throws BundleException
- Description copied from interface:
AdaptorHook
- Gets called by the adaptor during
FrameworkAdaptor.frameworkStop(BundleContext).
This method allows an adaptor hook to execute code when the framework is stopped
(e.g. to unregister services).
- Specified by:
frameworkStop in interface AdaptorHook
- Parameters:
context - the system bundle context
- Throws:
BundleException
frameworkStopping
public void frameworkStopping(BundleContext context)
- Description copied from interface:
AdaptorHook
- Gets called by the adaptor during
FrameworkAdaptor.frameworkStopping(BundleContext).
This method allows an adaptor hook to execute code when the framework is about to start
the shutdown process.
- Specified by:
frameworkStopping in interface AdaptorHook
- Parameters:
context - the system bundle context
addProperties
public void addProperties(Properties properties)
- Description copied from interface:
AdaptorHook
- Gets called by the adaptor during
FrameworkAdaptor.getProperties().
This method allows an adaptor hook to add property values to the adaptor
properties object.
- Specified by:
addProperties in interface AdaptorHook
- Parameters:
properties - the adaptor properties object.
mapLocationToURLConnection
public URLConnection mapLocationToURLConnection(String location)
throws IOException
- Description copied from interface:
AdaptorHook
- Gets called by the adaptor during
FrameworkAdaptor.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.
- Specified by:
mapLocationToURLConnection in interface AdaptorHook
- Parameters:
location - a bundle location string to be converted to a URLConnection
- Returns:
- the URLConnection converted from the bundle location or null.
- Throws:
IOException
handleRuntimeError
public void handleRuntimeError(Throwable error)
- Description copied from interface:
AdaptorHook
- Gets called by the adaptor during
FrameworkAdaptor.handleRuntimeError(Throwable).
The adaptor will call this method for each configured adaptor hook.
- Specified by:
handleRuntimeError in interface AdaptorHook
- Parameters:
error - the unexpected error that occured.
createFrameworkLog
public FrameworkLog createFrameworkLog()
- Description copied from interface:
AdaptorHook
- Gets called by the adaptor during
FrameworkAdaptor.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.
- Specified by:
createFrameworkLog in interface AdaptorHook
- Returns:
- a FrameworkLog object or null.
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.