Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kasource.kaevent.example.guice.custom;
 
 
 
 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);
	}
	@SuppressWarnings("rawtypes")
	@Provides
	@Named("tempratureMethodResolver")
		return  new TempratureMethodResolver(21.0d);
	}
New to GrepCode? Check out our FAQ X