[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-3125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Grégory Joseph updated MAGNOLIA-3125:
-------------------------------------

    Fix Version/s: Green
                       (was: 4.3)

> ObservedComponentFactory.newInstance() should return a null-object when the 
> observed path doesn't exist yet and a default implementation can not be 
> determined
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-3125
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3125
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: Green
>
>
> 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|http://proxytoys.codehaus.org/apidocs/com/thoughtworks/proxy/toys/nullobject/package-summary.html])
>  for example is such an implementation)
> There's a currently failing/commented out test, see: 
> {{info.magnolia.objectfactory.ObservedComponentFactoryTest#testReturnsANullProxyUntilPathExistsForNonConcreteTypes}}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to