tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Marinkovic (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-2242) Tapestry IOC StrategyBuilder should be able to create a Strategy for generic Class parameters
Date Thu, 06 Mar 2008 16:02:58 GMT
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: Improvement
    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


Mime
View raw message