You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Simone Tripodi (Closed) (JIRA)" <ji...@apache.org> on 2012/01/10 17:37:39 UTC
[jira] [Closed] (CHAIN-64) Context should be Map
[ https://issues.apache.org/jira/browse/CHAIN-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simone Tripodi closed CHAIN-64.
-------------------------------
Resolution: Duplicate
Fix Version/s: 2.0
Assignee: Simone Tripodi
This is a duplicate of CHAIN-58
> Context should be Map<String, ? extends Object>
> -----------------------------------------------
>
> Key: CHAIN-64
> URL: https://issues.apache.org/jira/browse/CHAIN-64
> Project: Commons Chain
> Issue Type: Bug
> Reporter: Ales Dolecek
> Assignee: Simone Tripodi
> Priority: Minor
> Fix For: 2.0
>
>
> Hello,
> I belive that restriction imposed on context value types to be Objects is unnecesary severe. I can imagine context which can only hold values of certain (sub-)class.
> I think that the Context should be declared as
> interface Context<T> extends Map<String, T extends Object>;
> The commands should be generic as well
> interface Comamnd<T> {
> Object execute(Context<? extends T> context);
> }
> The commands provided by the chains can either:
> a) be generic as well, or
> b) defined as "implements Command<Object>"
> Ales
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira