Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
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
Attachments
Issue Links
- is depended upon by
-
MAGNOLIA-3080 Cleanup conundrum between FreemarkerHelper and FreemarkerConfig
-
- Closed
-
- is duplicated by
-
MAGNOLIA-2533 FactoryUtil$ObservedObjectFactory should gracefully handle components where a class is not specified
-
- Closed
-
- is related to
-
MAGNOLIA-2553 FactoryUtil: should return a proxy object for observed objects
-
- Closed
-
-
MAGNOLIA-3125 ObservedComponentFactory.newInstance() should return a null-object when the observed path doesn't exist yet and a default implementation can not be determined
-
- Closed
-