You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/01/16 14:52:34 UTC

[jira] [Updated] (OAK-2273) Export Lucene packages

     [ https://issues.apache.org/jira/browse/OAK-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chetan Mehrotra updated OAK-2273:
---------------------------------
    Attachment: bnd.txt

Attached is the [bnd output|^bnd.txt] for updated oak-lucene with exports of lucene packages

> Export Lucene packages 
> -----------------------
>
>                 Key: OAK-2273
>                 URL: https://issues.apache.org/jira/browse/OAK-2273
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: oak-lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.1.5
>
>         Attachments: bnd.txt
>
>
> As discussed in [1] for enabling custom analyzers in Oak we intend make use of OSGi ServiceRegistry. This would require other bundles to create custom analyzer instance and register it with SR from where oak-lucene would look them up
> Further export would make use of Mandatory Attributes so as to prevent Oak usage of Lucene affecting other bundles in the OSGi runtime. The Lucene packages would be exported like
> {noformat}
> Export-Package: org.apache.lucene;provider="oak";mandatory=:provider
> {noformat}
> And any bundle which wish to make use of Lucene related packages
> {noformat}
> Import-Package : org.apache.lucene;provider="oak"
> {noformat}
> [1] http://markmail.org/thread/xsmg3tjjbkhtyhpk#query:+page:1+mid:jmip66k43l2qxc6a+state:results
> [2] http://www.osgi.org/download/r4v41/r4.core.pdf (Sec 3.6.6 pg 45)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)