You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Rory Winston (JIRA)" <ji...@apache.org> on 2009/03/11 14:28:50 UTC
[jira] Created: (DIRMINA-670) Make ProtocolEncoder/Decoder
interfaces typesafe
Make ProtocolEncoder/Decoder interfaces typesafe
------------------------------------------------
Key: DIRMINA-670
URL: https://issues.apache.org/jira/browse/DIRMINA-670
Project: MINA
Issue Type: Wish
Components: Core
Affects Versions: 2.0.0-M4
Reporter: Rory Winston
Priority: Minor
It would be nice to be able to have some type safety in the protocol codec interfaces. For instance, in the ProtocolEncoder interface, a change to something like:
public interface ProtocolEncoder <T> {
void encode(IoSession session, T message, ProtocolEncoderOutput out)
throws Exception;
...
}
Would ensure type safety on objects to be encoded.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRMINA-670) Make ProtocolEncoder/Decoder
interfaces typesafe
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRMINA-670:
--------------------------------------
Fix Version/s: 3.0.0-M1
Should be feasable for 3.0. Not for 2.0, as we are supposed to hev frozen the API ...
> Make ProtocolEncoder/Decoder interfaces typesafe
> ------------------------------------------------
>
> Key: DIRMINA-670
> URL: https://issues.apache.org/jira/browse/DIRMINA-670
> Project: MINA
> Issue Type: Wish
> Components: Core
> Affects Versions: 2.0.0-M4
> Reporter: Rory Winston
> Priority: Minor
> Fix For: 3.0.0-M1
>
>
> It would be nice to be able to have some type safety in the protocol codec interfaces. For instance, in the ProtocolEncoder interface, a change to something like:
> public interface ProtocolEncoder <T> {
> void encode(IoSession session, T message, ProtocolEncoderOutput out)
> throws Exception;
> ...
> }
> Would ensure type safety on objects to be encoded.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.