[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]