You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jakub Malý (JIRA)" <ji...@apache.org> on 2013/07/25 22:27:48 UTC

[jira] [Commented] (JCR-2280) Lazy initialize ItemDefinition

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

Jakub Malý commented on JCR-2280:
---------------------------------

This improvement was committed to 1.6 branch as well and it is not part of the release notes.
                
> Lazy initialize ItemDefinition
> ------------------------------
>
>                 Key: JCR-2280
>                 URL: https://issues.apache.org/jira/browse/JCR-2280
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>             Fix For: 2.0-alpha11
>
>         Attachments: JCR-2280.patch
>
>
> The item definition is currently set immediately when an ItemData is instantiated. Accessing nodes usually does not require reading the item definition, thus it is not necessary to load/set it that early.
> Lazy initialization also has the benefit that content migration in an upgrade scenario becomes easier. Instead of throwing an exception early, jackrabbit could allow access to the item until an item definition is really required for the operation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira