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 "Amit Jain (JIRA)" <ji...@apache.org> on 2014/09/30 09:42:45 UTC

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

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

Amit Jain updated OAK-1721:
---------------------------
    Fix Version/s:     (was: 1.1)
                   1.1.0

> 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.0
>
>
> 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.3.4#6332)