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 2017/01/16 04:37:26 UTC

[jira] [Comment Edited] (OAK-5451) Class IndexTracker should not be package protected since LuceneIndexMBeanImpl cannot be used in non OSGi configurations

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

Chetan Mehrotra edited comment on OAK-5451 at 1/16/17 4:37 AM:
---------------------------------------------------------------

[~vschmidt] Changing the visibility of class is possible however I am interested in knowing how you are setting up Oak. As configuring Lucene setup programatically is tricky and one needs to know the code based quite a bit to get it right (OAK-5435 would try to simplify it)

For non OSGi setup you can use the approach as demonstrated in [1] which would allow one to use Oak OSGi based setup support in non OSGi env. In such a case you would not need to configure IndexTracker directly

[1] https://github.com/apache/jackrabbit-oak/tree/trunk/oak-examples/standalone


was (Author: chetanm):
[~vschmidt] Changing the visibility of class is not a problem however I am interested in knowing how you are setting up Oak. As configuring Lucene setup programatically is tricky and one needs to know the code based quite a bit to get it right (OAK-5435 would try to simplify it)

For non OSGi setup you can use the approach as demonstrated in [1] which would allow one to use Oak OSGi based setup support in non OSGi env. In such a case you would not need to configure IndexTracker directly

[1] https://github.com/apache/jackrabbit-oak/tree/trunk/oak-examples/standalone

> Class IndexTracker should not be package protected since LuceneIndexMBeanImpl cannot be used in non OSGi configurations
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-5451
>                 URL: https://issues.apache.org/jira/browse/OAK-5451
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>    Affects Versions: 1.4.10
>            Reporter: Volker Schmidt
>            Assignee: Chetan Mehrotra
>            Priority: Trivial
>             Fix For: 1.4.13
>
>
> Class IndexTracker is a package protected class that must be passed as an argument to LuceneIndexMBeanImpl. For OSGi environments the MBean LuceneIndexMBeanImpl is registered by LuceneIndexProviderService that is located in the same package like IndexTracker. For nin OSGi environments LuceneIndexMBeanImpl cannot be used, since class IndexTracker is not accessible (except by implementing workarounds). 
> Either class IndexTracker should be public or the constructor argument of LuceneIndexMBeanImpl should be LuceneIndexProvider.



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