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 "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2014/05/12 18:39:15 UTC

[jira] [Resolved] (OAK-1721) register ContentRepository to whiteboard

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

Tobias Bocanegra resolved OAK-1721.
-----------------------------------

    Resolution: Won't Fix

wont fix for now. maybe revisited with further osgi-fication.

> register ContentRepository to whiteboard
> ----------------------------------------
>
>                 Key: OAK-1721
>                 URL: https://issues.apache.org/jira/browse/OAK-1721
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.20
>            Reporter: Tobias Bocanegra
>            Assignee: Tobias Bocanegra
>            Priority: Minor
>             Fix For: 1.1
>
>
> for OAK-1711 we need a way "login" to the content repository - but there is not way how to acquire it. it seems that it is neither registered as OSGi service, nor in the global whiteboard.
> suggesting to do in Oak.createContentRepository(...):
> {noformat}
> @@ -548,13 +548,15 @@ public class Oak {
> -        return new ContentRepositoryImpl(
> +        ContentRepositoryImpl repository =  new ContentRepositoryImpl(
>                  store,
>                  CompositeHook.compose(commitHooks),
>                  defaultWorkspaceName,
>                  queryEngineSettings,
>                  indexProvider,
>                  securityProvider);
> +        whiteboard.register(ContentRepository.class, repository,
> Collections.emptyMap());
> +        return repository;
>      }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)