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

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Critical
    • 7.1.1.Final
    • None
    • Domain Management
    • None

    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.

      Attachments

        Activity

          People

            emuckenhuber_jira Emanuel Muckenhuber (Inactive)
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: