package org.realityforge.tarrabah;

import javax.inject.Inject;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.Channels;

public class SyslogUDPServer
  extends AbstractUDPServer
{
  @Inject
  private SyslogHandler _syslogHandler;

  protected ChannelPipelineFactory newPipelineFactory()
  {
    return new ChannelPipelineFactory()
    {
      public ChannelPipeline getPipeline()
        throws Exception
      {
        _syslogHandler = new SyslogHandler();
        return Channels.pipeline( _syslogHandler );
      }
    };
  }
}

@@ -498,54 +498,8 @@
   %7B%0A
-        _syslogHandler = new SyslogHandler();%0A
     

Remove explicit instantiation as bean is CDI managed