public interface AdaptorHook
BaseAdaptor class.BaseAdaptor,
HookRegistry.getAdaptorHooks(),
HookRegistry.addAdaptorHook(AdaptorHook)void initialize(BaseAdaptor adaptor)
FrameworkAdaptor.initialize(EventPublisher).
This method allows an adaptor hook to save the adaptor object for later.adaptor - the adaptor object associated with this AdaptorHook.void frameworkStart(BundleContext context) throws BundleException
FrameworkAdaptor.frameworkStart(BundleContext).
This method allows an adaptor hook to execute code when the framework is starting
(e.g. to register services).context - the system bundle contextBundleException - if an error occursvoid frameworkStop(BundleContext context) throws BundleException
FrameworkAdaptor.frameworkStop(BundleContext).
This method allows an adaptor hook to execute code when the framework is stopped
(e.g. to unregister services).context - the system bundle contextBundleException - if an error occurs.void frameworkStopping(BundleContext context)
FrameworkAdaptor.frameworkStopping(BundleContext).
This method allows an adaptor hook to execute code when the framework is about to start
the shutdown process.context - the system bundle contextvoid addProperties(Properties properties)
FrameworkAdaptor.getProperties().
This method allows an adaptor hook to add property values to the adaptor
properties object.properties - the adaptor properties object.URLConnection mapLocationToURLConnection(String location) throws IOException
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.location - a bundle location string to be converted to a URLConnectionIOException - if an error occured creating the URLConnectionvoid handleRuntimeError(Throwable error)
FrameworkAdaptor.handleRuntimeError(Throwable).
The adaptor will call this method for each configured adaptor hook.error - the unexpected error that occured.FrameworkLog createFrameworkLog()
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.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.