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/12/01 09:44:13 UTC

[jira] [Commented] (OAK-2307) Provide API to create Tree from NodeState

    [ https://issues.apache.org/jira/browse/OAK-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14229543#comment-14229543 ] 

Michael Dürig commented on OAK-2307:
------------------------------------

Can't we simply add a factory to {{org.apache.jackrabbit.oak.spi.state}}?

{code}
public final class TreeFactory {
    public static Tree createTree(NodeState root) {
        return new ImmutableTree(root);
    }
}
{code}

> Provide API to create Tree from NodeState
> -----------------------------------------
>
>                 Key: OAK-2307
>                 URL: https://issues.apache.org/jira/browse/OAK-2307
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: Chetan Mehrotra
>            Assignee: Michael Dürig
>            Priority: Minor
>             Fix For: 1.2
>
>
> Oak Core should provide a way to construct {{Tree}} instances from {{NodeState}}. As noted in [1] its not possible to export the tree related packages due to current design issue we need to provide way for users to create Tree from NodeState
> [1] http://markmail.org/thread/o5yzdsm3pb234h7m



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)