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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2014/05/12 15:56:14 UTC
[jira] [Commented] (OAK-1721) register ContentRepository to
whiteboard
[ https://issues.apache.org/jira/browse/OAK-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13995097#comment-13995097 ]
Michael Dürig commented on OAK-1721:
------------------------------------
As OAK-1711 has been resolved, I wonder whether this is still an issue or whether it has been resolved within the scope of the former. In both cases I think we should resolve this issue. Either as won't fix or as fixed.
> 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)