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

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

    Fix Version/s: 5.0
                       (was: 4.3.x)

Probably becomes irrelevant with MAGNOLIA-2569

> ComponentProvider should lookup superclasses and interfaces of the required 
> component
> -------------------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-3079
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3079
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>            Priority: Major
>             Fix For: 5.0
>
>
> If {{ComponentProvider.getSingleton(com.foo.SomeSubInterface.class)}} is 
> called, and no component is registered specifically for 
> {{com.foo.SomeSubInterface}}, the ComponentProvider should look up 
> registration for parents of {{com.foo.SomeSubInterface}} (i.e 
> {{com.foo.SomeInterface}}, if {{SomeSubInterface extends SomeInterface}})
> This should:
> * remove the need for casting when depending on a specific implementation: 
> {code}
> // instead of:
> SomeSubInterface z = (SomeSubInterface) 
> Components.getSingleton(SomeInterface.class);
> // you should be able to do:
> SomeSubInterface z = Components.getSingleton(SomeSubInterface.class);
> // even if only SomeInterface was configured (i.e if there's only a property 
> for com.foo.SomeInterface)
> {code}
> * likewise, this should fix MAGNOLIA-3059 -- TODO: insert details as to 
> how/why ;)

-- 
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