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

ObservedComponentFactory.newInstance() should return a default implementation when the observed path doesn't exist yet

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.3
    • None
    • core
    • None

    Description

      ObservedComponentFactory.newInstance() currently returns null when the observed path doesn't exist yet. It should return a default implementation (to be configured) or some form of null proxy (see for example Proxytoy's null object proxy) so that client code can always keep a reference to the observed singleton without having to care about it's state on the repo, thus making the observation/factory system entirely transparent.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                gjoseph Magnolia International
                gjoseph Magnolia International
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD