globalAssemblyBefores = visitBefores.getMappings(GLOBAL_SELECTORS);
globalAssemblyAfters = visitAfters.getMappings(GLOBAL_SELECTORS);
// Register the DOM phase events...
if (eventListener != null) {
eventListener.onEvent(new DOMFilterLifecycleEvent(DOMFilterLifecycleEvent.DOMEventType.ASSEMBLY_STARTED));
}
// Apply assembly phase, skipping it if there are no configured assembly units...
if (applyAssembly(visitBefores, visitAfters)) {
// Assemble
if (logger.isDebugEnabled()) {
logger.debug("Starting assembly phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
}
assemble(element, true);
} else {
if (logger.isDebugEnabled()) {
logger.debug("No assembly units configured for device [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
}
}
// Register the DOM phase events...
if (eventListener != null) {
eventListener.onEvent(new DOMFilterLifecycleEvent(DOMFilterLifecycleEvent.DOMEventType.PROCESSING_STARTED));
}
// Apply processing phase...
if (logger.isDebugEnabled()) {
logger.debug("Starting processing phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");