jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-2307) Provide API to create Tree from NodeState
Date Mon, 01 Dec 2014 08:44:13 GMT

    [ 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)

Mime
View raw message