Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3590

Deprecate OperationContext.getRootResource(); provide variant to get a read only view of an addressed branch of the Resource tree

    Details

      Description

      OperationContext.getRootResource() is very expensive as it clones the entire model in order to provide a defensive copy that callers can't use to mutate parent resources.

      In almost all cases the caller then navigates to a lower level of the tree to read. The OperationContext should provide a method to do this for them, restricting the cost of defending against writes to the portion of the tree the caller actually cares about.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                emuckenhuber Emanuel Muckenhuber
                Reporter:
                brian.stansberry Brian Stansberry
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: