Package com.github.wolfie.blackboard.annotation

Examples of com.github.wolfie.blackboard.annotation.ListenerPair


  }

  private boolean findByAnnotation(final Class<? extends Object> eventCandidate) {

    if (Event.class.isAssignableFrom(eventCandidate)) {
      final ListenerPair listenerPair = eventCandidate
          .getAnnotation(ListenerPair.class);
      if (listenerPair != null) {
        @SuppressWarnings("unchecked")
        final Class<? extends Event> eventClass = (Class<? extends Event>) eventCandidate;
        _register(listenerPair.value(), eventClass);
        return true;
      }
    }

    return false;
View Full Code Here

TOP

Related Classes of com.github.wolfie.blackboard.annotation.ListenerPair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.