mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-372) Generics support for IoHandler
Date Wed, 13 Jun 2007 02:55:26 GMT

    [ https://issues.apache.org/jira/browse/DIRMINA-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504105

Trustin Lee commented on DIRMINA-372:

I agree with Mark because DemuxingIoHandler already provides such a functionality.  Adding
an ExceptionHandler sounds very useful, so it will be taken care in a separate issue.

DispatchingIoHandler is also a cool idea although it overlaps with DemuxingIoHandler.  Once
done right, we could deprecate DemuxingIoHandler.  Otherwise, we could make this feature built-in
so all IoHandler implementations get the benefit.  I guess the overhead will be minimal. 

public class MyHandler implements IoHandler {
    public void messageReceived(IoSession session, MyMessage message) {
        // invoked when the received message is MyMessage.

    public void messageReceived(IoSession session, Object message) {
        // invoked for all other type of messages,

> Generics support for IoHandler
> ------------------------------
>                 Key: DIRMINA-372
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-372
>             Project: MINA
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            Reporter: Eero Nevalainen
>            Priority: Minor
>             Fix For: 1.1.1, 2.0.0-M1
> It would be nice to have generics support for IoHandler so that messageReceived and messageSent
would be called with the appropriate generic types.

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

View raw message