Codota Logo
BasicExecutionEventListener
Code IndexAdd Codota to your IDE (free)

How to use
BasicExecutionEventListener
in
org.milyn.event

Best Java code snippets using org.milyn.event.BasicExecutionEventListener (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.milyn/milyn-smooks-core

/**
 * Process the {@link ExecutionEvent}.
 * @param event The {@link ExecutionEvent}.
 */
public void onEvent(ExecutionEvent event) {
  if(ignoreEvent(event)) {
    // Don't capture this event...
    return;
  }
  if(event != null) {
    events.add(event);
  } else {
    logger.warn("Invalid call to onEvent method.  null 'event' arg.");
  }
}
origin: org.milyn/milyn-smooks-core

protected boolean ignoreEvent(ExecutionEvent event) {
  if(event instanceof FilterLifecycleEvent) {
    return false;
  } else if(event instanceof ElementPresentEvent) {
    return false;
  }
  if(filterEvents != null && !filterEvents.contains(event.getClass())) {
    return true;
  }
  if(event instanceof ElementVisitEvent) {
    ElementVisitEvent visitEvent = (ElementVisitEvent) event;
    ContentHandler handler = visitEvent.getConfigMapping().getContentHandler();
    if(visitEvent.getSequence() == VisitSequence.BEFORE) {
      VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    } else {
      VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    }
  }
  return false;
}
origin: smooks/smooks

protected boolean ignoreEvent(ExecutionEvent event) {
  if(event instanceof FilterLifecycleEvent) {
    return false;
  } else if(event instanceof ElementPresentEvent) {
    return false;
  }
  if(filterEvents != null && !filterEvents.contains(event.getClass())) {
    return true;
  }
  if(event instanceof ElementVisitEvent) {
    ElementVisitEvent visitEvent = (ElementVisitEvent) event;
    ContentHandler handler = visitEvent.getConfigMapping().getContentHandler();
    if(visitEvent.getSequence() == VisitSequence.BEFORE) {
      VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    } else {
      VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    }
  }
  return false;
}
origin: smooks/smooks

/**
 * Process the {@link ExecutionEvent}.
 * @param event The {@link ExecutionEvent}.
 */
public void onEvent(ExecutionEvent event) {
  if(ignoreEvent(event)) {
    // Don't capture this event...
    return;
  }
  if(event != null) {
    events.add(event);
  } else {
    logger.warn("Invalid call to onEvent method.  null 'event' arg.");
  }
}
origin: org.milyn/milyn-smooks-all

protected boolean ignoreEvent(ExecutionEvent event) {
  if(event instanceof FilterLifecycleEvent) {
    return false;
  } else if(event instanceof ElementPresentEvent) {
    return false;
  }
  if(filterEvents != null && !filterEvents.contains(event.getClass())) {
    return true;
  }
  if(event instanceof ElementVisitEvent) {
    ElementVisitEvent visitEvent = (ElementVisitEvent) event;
    ContentHandler handler = visitEvent.getConfigMapping().getContentHandler();
    if(visitEvent.getSequence() == VisitSequence.BEFORE) {
      VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    } else {
      VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    }
  }
  return false;
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Process the {@link ExecutionEvent}.
 * @param event The {@link ExecutionEvent}.
 */
public void onEvent(ExecutionEvent event) {
  if(ignoreEvent(event)) {
    // Don't capture this event...
    return;
  }
  if(event != null) {
    events.add(event);
  } else {
    logger.warn("Invalid call to onEvent method.  null 'event' arg.");
  }
}
origin: org.virtuslab/milyn-smooks-core

protected boolean ignoreEvent(ExecutionEvent event) {
  if(event instanceof FilterLifecycleEvent) {
    return false;
  } else if(event instanceof ElementPresentEvent) {
    return false;
  }
  if(filterEvents != null && !filterEvents.contains(event.getClass())) {
    return true;
  }
  if(event instanceof ElementVisitEvent) {
    ElementVisitEvent visitEvent = (ElementVisitEvent) event;
    ContentHandler handler = visitEvent.getConfigMapping().getContentHandler();
    if(visitEvent.getSequence() == VisitSequence.BEFORE) {
      VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    } else {
      VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    }
  }
  return false;
}
origin: org.milyn/milyn-smooks-all

/**
 * Process the {@link ExecutionEvent}.
 * @param event The {@link ExecutionEvent}.
 */
public void onEvent(ExecutionEvent event) {
  if(ignoreEvent(event)) {
    // Don't capture this event...
    return;
  }
  if(event != null) {
    events.add(event);
  } else {
    logger.warn("Invalid call to onEvent method.  null 'event' arg.");
  }
}
origin: org.milyn/milyn-smooks-core

protected boolean ignoreEvent(ExecutionEvent event) {
  if(!super.ignoreEvent(event)) {
    if (event instanceof ResourceBasedEvent) {
      if (!reportConfiguration.showDefaultAppliedResources()) {
        return ((ResourceBasedEvent) event).getResourceConfig().isDefaultResource();
      }
    }
    return false;
  }
  return true;
}
origin: org.milyn/milyn-smooks-all

protected boolean ignoreEvent(ExecutionEvent event) {
  if(!super.ignoreEvent(event)) {
    if (event instanceof ResourceBasedEvent) {
      if (!reportConfiguration.showDefaultAppliedResources()) {
        return ((ResourceBasedEvent) event).getResourceConfig().isDefaultResource();
      }
    }
    return false;
  }
  return true;
}
origin: org.virtuslab/milyn-smooks-core

protected boolean ignoreEvent(ExecutionEvent event) {
  if(!super.ignoreEvent(event)) {
    if (event instanceof ResourceBasedEvent) {
      if (!reportConfiguration.showDefaultAppliedResources()) {
        return ((ResourceBasedEvent) event).getResourceConfig().isDefaultResource();
      }
    }
    return false;
  }
  return true;
}
origin: smooks/smooks

protected boolean ignoreEvent(ExecutionEvent event) {
  if(!super.ignoreEvent(event)) {
    if (event instanceof ResourceBasedEvent) {
      if (!reportConfiguration.showDefaultAppliedResources()) {
        return ((ResourceBasedEvent) event).getResourceConfig().isDefaultResource();
      }
    }
    return false;
  }
  return true;
}
org.milyn.eventBasicExecutionEventListener

Javadoc

Basic ExecutionEventListener.

This event listener listens to and captures published events. The list of captured events can be filtered by setting a list of #setFilterEvents.

This listener should be used with great care. It could quite easily consume large amounts of memory if not used properly. If access to this information is required in a production environment, consider writing and using a more specialized implementation of the ExecutionEventListener interface i.e. an implementation that captures the information in a more memory-friendly way.

Most used methods

  • evalReportCondition
  • ignoreEvent

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now