org.sonar.channel
Class ChannelDispatcher.Builder

java.lang.Object
  extended by org.sonar.channel.ChannelDispatcher.Builder
Enclosing class:
ChannelDispatcher<OUTPUT>

public static final class ChannelDispatcher.Builder
extends Object


Method Summary
 ChannelDispatcher.Builder addChannel(Channel channel)
           
 ChannelDispatcher.Builder addChannels(Channel... c)
           
<OUTPUT> ChannelDispatcher<OUTPUT>
build()
           
 ChannelDispatcher.Builder failIfNoChannelToConsumeOneCharacter()
          If this option is activated, an IllegalStateException will be thrown as soon as a character won't be consumed by any channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addChannel

public ChannelDispatcher.Builder addChannel(Channel channel)

addChannels

public ChannelDispatcher.Builder addChannels(Channel... c)

failIfNoChannelToConsumeOneCharacter

public ChannelDispatcher.Builder failIfNoChannelToConsumeOneCharacter()
If this option is activated, an IllegalStateException will be thrown as soon as a character won't be consumed by any channel.


build

public <OUTPUT> ChannelDispatcher<OUTPUT> build()


Copyright © 2009-2011 SonarSource. All Rights Reserved.