@VisitBeforeReport(condition = "false") @VisitAfterReport(summary = "Applied StringTemplate Template.", detailTemplate = "reporting/StringTemplateTemplateProcessor_After.html") private static class StringTemplateTemplateProcessor extends AbstractTemplateProcessor implements Consumer {
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; } }
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; }
@VisitBeforeReport(condition = "false") @VisitAfterReport(summary = "Applied StringTemplate Template.", detailTemplate = "reporting/StringTemplateTemplateProcessor_After.html") private static class StringTemplateTemplateProcessor extends AbstractTemplateProcessor implements Consumer {
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; } }
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; }
@VisitBeforeReport(condition = "false") @VisitAfterReport(summary = "Applied StringTemplate Template.", detailTemplate = "reporting/StringTemplateTemplateProcessor_After.html") private static class StringTemplateTemplateProcessor extends AbstractTemplateProcessor implements Consumer {
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; } }
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; }
@VisitBeforeReport(condition = "false") @VisitAfterReport(summary = "Applied StringTemplate Template.", detailTemplate = "reporting/StringTemplateTemplateProcessor_After.html") private static class StringTemplateTemplateProcessor extends AbstractTemplateProcessor implements Consumer {
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; } }
@VisitBeforeReport(condition = "false") @VisitAfterReport(summary = "Applied XSL Template.", detailTemplate = "reporting/XslTemplateProcessor_After.html") public class XslTemplateProcessor extends AbstractTemplateProcessor implements Consumer, FilterBypass {
@VisitBeforeReport(condition = "false") @VisitAfterReport(summary = "Applied XSL Template.", detailTemplate = "reporting/XslTemplateProcessor_After.html") public class XslTemplateProcessor extends AbstractTemplateProcessor implements Consumer, FilterBypass {
@VisitBeforeReport(summary = "FreeMarker Template - See Detail.", detailTemplate = "reporting/FreeMarkerTemplateProcessor_before.html") @VisitAfterReport(summary = "FreeMarker Template - See Detail.", detailTemplate = "reporting/FreeMarkerTemplateProcessor_After.html") public class FreeMarkerTemplateProcessor extends AbstractTemplateProcessor implements SAXElementVisitor, Consumer {
@VisitBeforeReport(summary = "FreeMarker Template - See Detail.", detailTemplate = "reporting/FreeMarkerTemplateProcessor_before.html") @VisitAfterReport(summary = "FreeMarker Template - See Detail.", detailTemplate = "reporting/FreeMarkerTemplateProcessor_After.html") public class FreeMarkerTemplateProcessor extends AbstractTemplateProcessor implements SAXElementVisitor, Consumer {
@VisitBeforeReport(condition = "false") @VisitAfterReport(summary = "Applied validation rule '${resource.parameters.name}'.") public final class Validator implements SAXVisitBefore, SAXVisitAfter, DOMVisitAfter
@VisitBeforeReport(condition = "false") @VisitAfterReport(summary = "Applied validation rule '${resource.parameters.name}'.") public final class Validator implements SAXVisitBefore, SAXVisitAfter, DOMVisitAfter
@VisitBeforeReport(summary = "Flushing <#if !resource.parameters.dao??>default </#if>DAO<#if resource.parameters.dao??> '${resource.parameters.dao}'</#if>.", detailTemplate="reporting/DaoFlusher.html") @VisitAfterReport(summary = "Flushing <#if !resource.parameters.dao??>default </#if>DAO<#if resource.parameters.dao??> '${resource.parameters.dao}'</#if>.", detailTemplate="reporting/DaoFlusher.html") public class DaoFlusher implements DOMElementVisitor, SAXVisitBefore, SAXVisitAfter {
@VisitBeforeReport(summary = "Bind DirectDataSource <b>${resource.parameters.datasource}</b> to ExecutionContext.", detailTemplate = "reporting/DirectDataSource_before.html") @VisitAfterReport(summary = "Cleaning up DirectDataSource <b>${resource.parameters.datasource}</b>. Includes performing commit/rollback etc.", detailTemplate = "reporting/DirectDataSource_after.html") public class DirectDataSource extends AbstractDataSource {