Skip to content

Instantly share code, notes, and snippets.

@almozavr
Created June 2, 2013 08:20
Show Gist options
  • Save almozavr/5693003 to your computer and use it in GitHub Desktop.
Save almozavr/5693003 to your computer and use it in GitHub Desktop.
public List<Class<?>> getEventTypesBySubscriber(Object subscriber) {
List<SubscriberMethod> subscriberMethods = subscriberMethodFinder.findSubscriberMethods(subscriber.getClass(), defaultMethodName);
List<Class<?>> eventTypes = new ArrayList<Class<?>>(subscriberMethods.size());
for (SubscriberMethod method : subscriberMethods) {
eventTypes.add(method.eventType);
}
return eventTypes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment