001 package com.hammurapi.eventbus.tests;
002
003 import com.hammurapi.common.Condition;
004 import com.hammurapi.eventbus.Handler;
005
006 public class StringHandlerWithParameterCondition {
007
008 private int counter;
009 private boolean ok;
010
011 public int getCounter() {
012 return counter;
013 }
014
015 public boolean isOk() {
016 return ok;
017 }
018
019 @Handler
020 public void handle(@Condition("\"Hello\".equals(str)") String str) {
021 ++counter;
022 ok = "Hello".equals(str);
023 }
024
025 }