Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kasource.kaevent.example.guice.channel;
 
 
 
import  com.google.inject.Provides;
import  com.google.inject.name.Named;
import  com.google.inject.name.Names;
//CHECKSTYLE:OFF
///CLOVER:OFF
public class ExampleModule extends KaEventModule {
	public ExampleModule() {
	}
	protected void configure() {
		super.configure();
		bind(Thermometer.class).annotatedWith(Names.named("thermometer")).to(Thermometer.class);
	}
	@Provides
	@Named("temperatureChannel")
		Channel channel = channelFactory.createChannel("temperatureChannel");
		return (ListenerChannelchannel;
	}
New to GrepCode? Check out our FAQ X