@Test @DisplayName("obtain methods subscribed to events of the passed class and the class of origin") void subscribersOf() { ImmutableSet<SubscriberMethod> methods = subscriberClass.subscribersOf( EventClass.from(SpeakerJoined.class), EmptyClass.instance()); assertThat(methods).hasSize(1); SubscriberMethod actual = getFirst(methods, null); assertThat(actual.rawMethod()) .isEqualTo(getMethod(ConferenceProgram.class, "addSpeaker")); }
@Override public ImmutableSet<SubscriberMethod> subscribersOf(EventClass eventClass, MessageClass originClass) { return delegate.handlersOf(eventClass, originClass); }
EventSubscriberClass extends ModelClass<S> implements EventReceiverClass, SubscribingClass { @Override public ImmutableSet<SubscriberMethod> subscribersOf(EventClass eventClass, MessageClass originClass) { return delegate.handlersOf(eventClass, originClass); } }
EventSubscriberClass extends ModelClass<S> implements EventReceiverClass, SubscribingClass { @Override public ImmutableSet<SubscriberMethod> subscribersOf(EventClass eventClass, MessageClass originClass) { return delegate.handlersOf(eventClass, originClass); } private  EventSubscriberClass(Class<S> cls); }
EventSubscriberClass extends ModelClass<S> implements EventReceiverClass, SubscribingClass { @Override public ImmutableSet<SubscriberMethod> subscribersOf(EventClass eventClass, MessageClass originClass) { return delegate.handlersOf(eventClass, originClass); } private  EventSubscriberClass(Class<S> cls); static EventSubscriberClass<S> asEventSubscriberClass(Class<S> cls); @Override ImmutableSet<EventClass> events(); @Override ImmutableSet<EventClass> domesticEvents(); @Override ImmutableSet<EventClass> externalEvents(); @Override ImmutableSet<SubscriberMethod> subscribersOf(EventClass eventClass, MessageClass originClass); }
EventSubscriberClass extends ModelClass<S> implements EventReceiverClass, SubscribingClass { @Override public ImmutableSet<SubscriberMethod> subscribersOf(EventClass eventClass, MessageClass originClass) { return delegate.handlersOf(eventClass, originClass); } private  EventSubscriberClass(Class<S> cls); static EventSubscriberClass<S> asEventSubscriberClass(Class<S> cls); @Override ImmutableSet<EventClass> events(); @Override ImmutableSet<EventClass> domesticEvents(); @Override ImmutableSet<EventClass> externalEvents(); @Override ImmutableSet<SubscriberMethod> subscribersOf(EventClass eventClass, MessageClass originClass);  }