001 package com.hammurapi.eventbus.tests;
002
003 import java.util.Collection;
004 import java.util.List;
005
006 import com.hammurapi.eventbus.Handler;
007
008 public class MoreRestrictiveHandler {
009
010 private boolean listInvoked;
011 private boolean handleInvoked;
012
013 @Handler
014 public void handleList(List<?> list) {
015 listInvoked = true;
016 }
017
018 @Handler
019 public void handleCollection(Collection<?> collection) {
020 handleInvoked = true;
021 }
022
023 public boolean isListInvoked() {
024 return listInvoked;
025 }
026
027 public boolean isCollectionInvoked() {
028 return handleInvoked;
029 }
030
031 }