[JBoss JIRA] Created: (NETTY-90) Add life cycle listener methods to ChannelHandler

Trustin Lee (JIRA) jira-events at lists.jboss.org
Mon Dec 1 03:43:36 EST 2008


Add life cycle listener methods to ChannelHandler
-------------------------------------------------

                 Key: NETTY-90
                 URL: https://jira.jboss.org/jira/browse/NETTY-90
             Project: Netty
          Issue Type: Feature Request
          Components: Core API
            Reporter: Trustin Lee
            Assignee: Trustin Lee
             Fix For: 3.1.0.ALPHA2


Netty 3.0 didn't have any life cycle listener methods in ChannelHandler interface.  Therefore, there was no way for a handler to get its ChannelHandlerContext without receiving at least one event.  Also, there's no way to get notified when it's removed from the pipeline.  It would be great if there's some listener methods which are notified when a handler is added or removed from a pipeline.

However, not all handlers require this functionality.  I'd suggest to add a subtype 'LifeCycleAwareChannelHandler' which provides the listener methods, so that a user can implement them only when he or she wants to implement it.

Relevant IRC discussion is found at: http://tinyurl.com/5fpvvs

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the netty-dev mailing list