All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kasource.kaevent.example.guice.custom.ExampleRunner Maven / Gradle / Ivy

The newest version!
package org.kasource.kaevent.example.guice.custom;


import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.name.Names;

/**
 * Example which uses a custom method resolver found by invoking a 
 * factory method, see TemperatureChangeEventListener for details. 
 *  
 * @author wigforss
 **/
//CHECKSTYLE:OFF
///CLOVER:OFF
public class ExampleRunner {
	public static void main(String[] args) {
		Injector injector = Guice.createInjector(new ExampleModule());
		Thermometer thermometer = injector.getInstance(Key.get(Thermometer.class, Names.named("thermometer")));
	

		new Thread(thermometer).start();
		
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy