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

Tobias Bocanegra updated OAK-1721:
----------------------------------

    Priority: Minor  (was: Major)

> register ContentRepository to whiteboard
> ----------------------------------------
>
>                 Key: OAK-1721
>                 URL: https://issues.apache.org/jira/browse/OAK-1721
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            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)

Reply via email to