001package org.xbib.elasticsearch.common.netty; 002 003import org.jboss.netty.buffer.ChannelBuffer; 004import org.jboss.netty.channel.Channel; 005import org.jboss.netty.channel.ChannelHandlerContext; 006import org.jboss.netty.handler.codec.frame.FrameDecoder; 007 008/** 009 * A marker to not remove frame decoder from the resulting jar, so plugins can use it. 010 */ 011public class KeepFrameDecoder extends FrameDecoder { 012 013 public static final KeepFrameDecoder decoder = new KeepFrameDecoder(); 014 015 @Override 016 protected Object decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) throws Exception { 017 return null; 018 } 019}