You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kristian Marinkovic (JIRA)" <de...@tapestry.apache.org> on 2008/03/06 17:04:58 UTC

[jira] Updated: (TAPESTRY-2242) Tapestry IOC StrategyBuilder should be able to create a Strategy for generic Class parameters

     [ https://issues.apache.org/jira/browse/TAPESTRY-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Marinkovic updated TAPESTRY-2242:
------------------------------------------

    Component/s: tapestry-ioc
     Issue Type: Wish  (was: Improvement)

> Tapestry IOC StrategyBuilder should be able to create a Strategy for generic Class parameters
> ---------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2242
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2242
>             Project: Tapestry
>          Issue Type: Wish
>          Components: tapestry-ioc
>    Affects Versions: 5.0.11
>            Reporter: Kristian Marinkovic
>
> it is not possible to create a strategy for an interface that contains a method with a generic Class as parameter
> the example below will create an exception if getModel(...) of the created Strategy object is called
> public interface MLSelectModelFactory() {
>     SelectModel getModel(Class<T> clazz);
> }
> public MLSelectModelFactory build(StrategyBuilder builder,
>             Map<Class, MLSelectModelFactory> configuration) {
>         
>        StrategyRegistry<MLSelectModelFactory> registry = 
>            StrategyRegistry.newInstance(MLSelectModelFactory.class, configuration);
>         
>         return builder.build(registry);
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org