|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdaptorHook
An AdaptorHook hooks into the BaseAdaptor
class.
BaseAdaptor
,
HookRegistry.getAdaptorHooks()
,
HookRegistry.addAdaptorHook(AdaptorHook)
Method Detail |
---|
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 context
BundleException
- 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 context
BundleException
- 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(java.util.Properties properties)
FrameworkAdaptor.getProperties()
.
This method allows an adaptor hook to add property values to the adaptor
properties object.
properties
- the adaptor properties object.java.net.URLConnection mapLocationToURLConnection(java.lang.String location) throws java.io.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 URLConnection
java.io.IOException
- if an error occured creating the URLConnectionvoid handleRuntimeError(java.lang.Throwable error)
FrameworkAdaptor.handleRuntimeError(Throwable)
.
The adaptor will call this method for each configured adaptor hook.
error
- the unexpected error that occured.boolean matchDNChain(java.lang.String pattern, java.lang.String[] dnChain)
FrameworkAdaptor.matchDNChain(String, String[])
.
The adaptor will call this method for each configured adaptor hook until one
adaptor hook returns a true value. If no adaptor hook returns a true value
then the adaptor will return false.
pattern
- AdnChain
-
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |