Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2553

FactoryUtil: should return a proxy object for observed objects

    XMLWordPrintable

    Details

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

      Description

      The problematic point is that code which keeps a reference to an object will never see an reloaded changes. It would be more convenient and saver if the factory would return and cache a proxy instead.

      Before this, code using such objects always had to get a fresh instance through the factory; once this is implemented, they can keep a reference (i.e get it in their constructor - potentially injected)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gjoseph Magnolia International
              Reporter:
              pbaerfuss Philipp Bärfuss
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: