@Test @DisplayName("obtain the method by the class of the event and the class of the origin") void reactorOf() { EventReactorMethod method = reactorClass.reactorOf( EventClass.from(ConferenceAnnounced.class), EmptyClass.instance() ); assertThat(method.rawMethod()) .isEqualTo(ModelTests.getMethod(ConferenceSetup.class, "invitationPolicy")); }
@Override public EventReactorMethod reactorOf(EventClass eventClass, MessageClass originClass) { return reactors.handlerOf(eventClass, originClass); }
EventReactorClass extends ModelClass<S> implements ReactingClass { @Override public EventReactorMethod reactorOf(EventClass eventClass, MessageClass originClass) { return reactors.handlerOf(eventClass, originClass); } }
EventReactorClass extends ModelClass<S> implements ReactingClass { @Override public EventReactorMethod reactorOf(EventClass eventClass, MessageClass originClass) { return reactors.handlerOf(eventClass, originClass); } private  EventReactorClass(Class<? extends S> cls); }
EventReactorClass extends ModelClass<S> implements ReactingClass { @Override public EventReactorMethod reactorOf(EventClass eventClass, MessageClass originClass) { return reactors.handlerOf(eventClass, originClass); } private  EventReactorClass(Class<? extends S> cls); static EventReactorClass<S> asReactorClass(Class<S> cls); @Override EventReactorMethod reactorOf(EventClass eventClass, MessageClass originClass); @Override ImmutableSet<EventClass> reactionOutput(); @Override ImmutableSet<EventClass> events(); @Override ImmutableSet<EventClass> externalEvents(); @Override ImmutableSet<EventClass> domesticEvents(); }
EventReactorClass extends ModelClass<S> implements ReactingClass { @Override public EventReactorMethod reactorOf(EventClass eventClass, MessageClass originClass) { return reactors.handlerOf(eventClass, originClass); } private  EventReactorClass(Class<? extends S> cls); static EventReactorClass<S> asReactorClass(Class<S> cls); @Override EventReactorMethod reactorOf(EventClass eventClass, MessageClass originClass); @Override ImmutableSet<EventClass> reactionOutput(); @Override ImmutableSet<EventClass> events(); @Override ImmutableSet<EventClass> externalEvents(); @Override ImmutableSet<EventClass> domesticEvents();  }