[ 
https://issues.apache.org/jira/browse/JCRVLT-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16278146#comment-16278146
 ] 

Konrad Windszus commented on JCRVLT-248:
----------------------------------------

bq. IIUC, the BundleContext.getServiceReference() gets the service references 
of all bundles. but here we only want the ones of hooks in the bundle.

You are right, I wasn't looking closely enough. The provided PR only supports 
local hook bundles but not external ones. I think it would be good to support 
both locals as well as hooks registered through any other bundle. For the 
latter case the filter is crucial though, because it would not make sense to 
execute all InstallHook services whenever a bundle is installed.

> Support install hook bundles
> ----------------------------
>
>                 Key: JCRVLT-248
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-248
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 3.1.42
>            Reporter: Tobias Bocanegra
>
> it would be helpful if the package installer could handle install hook 
> bundles OR if it could register install "hook" components in the felix admin 
> for execution. this would simplify the implementation of hooks that require 
> other osgi services for execution.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to