Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kasource.kaevent.example.guice.simple;
 
 
 import  com.google.inject.Singleton;
 
//CHECKSTYLE:OFF
///CLOVER:OFF
@Singleton
@BeanListener("thermometer")
public class Cooler implements TemperatureChangeEventListener {
	private boolean enabled = false;
	public Cooler() {
	}
	void initialize() {	
	}
	public boolean isEnabled() {
		return ;
	}
            if (!) {
            	..println("Cooler started.");
            }
             = true;
        } else {
            if () {
            	..println("Cooler turned off.");
            }
             = false;
        }
	}
New to GrepCode? Check out our FAQ X