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; }
private void initReport(ExecutionContext executionContext) { ContentHandler handler = configMapping.getContentHandler(); if (getSequence() == VisitSequence.BEFORE) { VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class); if (reportAnnotation != null && evalReportCondition(reportAnnotation.condition())) { applyReportTemplates(reportAnnotation.summary(), reportAnnotation.detailTemplate(), handler.getClass(), executionContext); } } else { VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class); if (reportAnnotation != null && evalReportCondition(reportAnnotation.condition())) { applyReportTemplates(reportAnnotation.summary(), reportAnnotation.detailTemplate(), handler.getClass(), executionContext); } } if (reportDetail == null) { // No template ... reportDetail = executionContextState; } }
private void initReport(ExecutionContext executionContext) { ContentHandler handler = configMapping.getContentHandler(); if (getSequence() == VisitSequence.BEFORE) { VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class); if (reportAnnotation != null && evalReportCondition(reportAnnotation.condition())) { applyReportTemplates(reportAnnotation.summary(), reportAnnotation.detailTemplate(), handler.getClass(), executionContext); } } else { VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class); if (reportAnnotation != null && evalReportCondition(reportAnnotation.condition())) { applyReportTemplates(reportAnnotation.summary(), reportAnnotation.detailTemplate(), handler.getClass(), executionContext); } } if (reportDetail == null) { // No template ... reportDetail = executionContextState; } }
private void initReport(ExecutionContext executionContext) { ContentHandler handler = configMapping.getContentHandler(); if (getSequence() == VisitSequence.BEFORE) { VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class); if (reportAnnotation != null && evalReportCondition(reportAnnotation.condition())) { applyReportTemplates(reportAnnotation.summary(), reportAnnotation.detailTemplate(), handler.getClass(), executionContext); } } else { VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class); if (reportAnnotation != null && evalReportCondition(reportAnnotation.condition())) { applyReportTemplates(reportAnnotation.summary(), reportAnnotation.detailTemplate(), handler.getClass(), executionContext); } } if (reportDetail == null) { // No template ... reportDetail = executionContextState; } }
private void initReport(ExecutionContext executionContext) { ContentHandler handler = configMapping.getContentHandler(); if (getSequence() == VisitSequence.BEFORE) { VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class); if (reportAnnotation != null && evalReportCondition(reportAnnotation.condition())) { applyReportTemplates(reportAnnotation.summary(), reportAnnotation.detailTemplate(), handler.getClass(), executionContext); } } else { VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class); if (reportAnnotation != null && evalReportCondition(reportAnnotation.condition())) { applyReportTemplates(reportAnnotation.summary(), reportAnnotation.detailTemplate(), handler.getClass(), executionContext); } } if (reportDetail == null) { // No template ... reportDetail = executionContextState; } }