-
Improvement
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
Since MAGNOLIA-3011, ObservedComponentFactory.newInstance() can return a new instance of the request object even if the observed path does not exist yet, as long as it's a concrete class. If the object is requested by interface, we could return a null-object implementation of the interface. (Proxytoy's null object proxy) for example is such an implementation)
There's a currently failing/commented out test, see: info.magnolia.objectfactory.ObservedComponentFactoryTest#testReturnsANullProxyUntilPathExistsForNonConcreteTypes
Acceptance criteria
- is related to
-
MAGNOLIA-3011 ObservedComponentFactory.newInstance() should return a default implementation when the observed path doesn't exist yet
- Closed