Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-84

Delegates for Session, Node, Property and Item

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3
    • Component/s: jcr
    • Labels:
      None

      Description

      Instead of passing around Nodes internally and casting them down to NodeImpl we should use the façade pattern and delegate from NodeImpl back to an implementation class which is used internally. This also avoids the problem of API clients accessing stuff they shouldn't by casting to the implementation.

      Some initial work has been done already. What's left to do it:

      • Push down as much as possible from ItemImpl, NodeImpl and PropertyImpl to the respective delegate classes
      • Introduce the same pattern for SessionImpl and do away with SessionContext.

        Attachments

          Activity

            People

            • Assignee:
              mduerig Michael Dürig
              Reporter:
              mduerig Michael Dürig
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: