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; }
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; }
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; }
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; }