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