42742e233f
Motivation: As we now us java8 as minimum java version we can deprecate ChannelInboundHandlerAdapter / ChannelOutboundHandlerAdapter and just move the default implementations into the interfaces. This makes things a bit more flexible for the end-user and also simplifies the class-hierarchy. Modifications: - Mark ChannelInboundHandlerAdapter and ChannelOutboundHandlerAdapter as deprecated - Add default implementations to ChannelInboundHandler / ChannelOutboundHandler - Refactor our code to not use ChannelInboundHandlerAdapter / ChannelOutboundHandlerAdapter anymore Result: Cleanup class-hierarchy and make things a bit more flexible.
37 lines
1.5 KiB
Java
37 lines
1.5 KiB
Java
/*
|
|
* Copyright 2012 The Netty Project
|
|
*
|
|
* The Netty Project licenses this file to you under the Apache License,
|
|
* version 2.0 (the "License"); you may not use this file except in compliance
|
|
* with the License. You may obtain a copy of the License at:
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations
|
|
* under the License.
|
|
*/
|
|
package io.netty.channel;
|
|
|
|
/**
|
|
* Abstract base class for {@link ChannelInboundHandler} implementations which provide
|
|
* implementations of all of their methods.
|
|
*
|
|
* <p>
|
|
* This implementation just forward the operation to the next {@link ChannelHandler} in the
|
|
* {@link ChannelPipeline}. Sub-classes may override a method implementation to change this.
|
|
* </p>
|
|
* <p>
|
|
* Be aware that messages are not released after the {@link #channelRead(ChannelHandlerContext, Object)}
|
|
* method returns automatically. If you are looking for a {@link ChannelInboundHandler} implementation that
|
|
* releases the received messages automatically, please see {@link SimpleChannelInboundHandler}.
|
|
* </p>
|
|
*
|
|
* @deprecated use {@link ChannelInboundHandler} directly.
|
|
*/
|
|
@Deprecated
|
|
public class ChannelInboundHandlerAdapter extends ChannelHandlerAdapter implements ChannelInboundHandler {
|
|
}
|