Exemplo n.º 1
0
 @Override
 public void notifyListeners(final InteractionEvent interactionEvent) {
   final InteractionEventDispatcher dispatcher =
       dispatchersByEventClass.get(interactionEvent.getClass());
   if (dispatcher == null) {
     throw new RuntimeException("Unknown InteractionEvent - register into dispatchers map");
   }
   dispatcher.dispatch(interactionEvent);
 }
Exemplo n.º 2
0
 /**
  * Convenience method that returns the {@link InteractionEvent#getIdentifier() identifier} of the
  * wrapped {@link #getInteractionEvent() interaction event}.
  *
  * @return
  */
 public Identifier getIdentifier() {
   return interactionEvent.getIdentifier();
 }
Exemplo n.º 3
0
 /**
  * Convenience method that returns the {@link InteractionEvent#getAdvisorClass() advisor class} of
  * the wrapped {@link #getInteractionEvent() interaction event}.
  *
  * @return
  */
 public Class<?> getAdvisorClass() {
   return interactionEvent.getAdvisorClass();
 }
Exemplo n.º 4
0
 public InteractionException(final InteractionEvent interactionEvent) {
   super(interactionEvent.getReasonMessage());
   this.interactionEvent = interactionEvent;
 }