Package com.ekuefler.supereventbus.filtering

Examples of com.ekuefler.supereventbus.filtering.When


  // Returns a boolean expression that should be used to check whether to invoke the given event
  // handler, based on the filters applied to it
  private String getFilter(JMethod method) throws UnableToCompleteException {
    StringBuilder predicate = new StringBuilder();
    When annotation = method.getAnnotation(When.class);
    boolean first = true;
    for (Class<?> filter : annotation.value()) {
      if (!classHasZeroArgConstructor(filter)) {
        logger.log(Type.ERROR, String.format(
            "Class %s extending EventFilter must define a public zero-argument constructor.",
            filter.getSimpleName()));
        throw new UnableToCompleteException();
View Full Code Here


  // Returns a boolean expression that should be used to check whether to invoke the given event
  // handler, based on the filters applied to it
  private String getFilter(JMethod method) throws UnableToCompleteException {
    StringBuilder predicate = new StringBuilder();
    When annotation = method.getAnnotation(When.class);
    boolean first = true;
    for (Class<?> filter : annotation.value()) {
      if (!classHasZeroArgConstructor(filter)) {
        logger.log(Type.ERROR, String.format(
            "Class %s extending EventFilter must define a public zero-argument constructor.",
            filter.getSimpleName()));
        throw new UnableToCompleteException();
View Full Code Here

TOP

Related Classes of com.ekuefler.supereventbus.filtering.When

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.