@Override
public Set<SubscriberInfo> getAllSubscribers() {
Set<SubscriberInfo> toReturn = new HashSet<SubscriberInfo>();
for (CopyOnWriteArrayList<EventConsumer> eventConsumers : consumersBySubscriberClass.values()) {
for (EventConsumer eventConsumer : eventConsumers) {
toReturn.add(new SubscriberInfo(eventConsumer.getDelegateSubscriber(), eventConsumer.getContainerInstance()));
}
}
return Collections.unmodifiableSet(toReturn);
}