You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Galo Gimenez <ga...@gmail.com> on 2014/04/22 19:53:59 UTC

plugin.document not exported in OSGi bundle

Hello,

I noticed org.apache.jackrabbit.oak.plugins.document.DocumentMK is not
exported in the OSGi bundle, is there a way to get Oak with the DocumentMK
instantiated in OSGi.


-- Galo

Re: plugin.document not exported in OSGi bundle

Posted by Chetan Mehrotra <ch...@gmail.com>.
The preferred approach is to instantiate via OSGi configuration. So in
your OSGi create configuration for DocumentNodeStore for pid
'org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService'
[1]. This would activate the DocumentNodeStoreService [2] component
and that would register DocumentNodeStore against NodeStore interface

Chetan Mehrotra
[1] http://jackrabbit.apache.org/oak/docs/osgi_config.html#DocumentNodeStore
[2] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java

On Tue, Apr 22, 2014 at 11:23 PM, Galo Gimenez <ga...@gmail.com> wrote:
> Hello,
>
> I noticed org.apache.jackrabbit.oak.plugins.document.DocumentMK is not
> exported in the OSGi bundle, is there a way to get Oak with the DocumentMK
> instantiated in OSGi.
>
>
> -- Galo