use of com.github.bordertech.wcomponents.UIContextDebugWrapper in project wcomponents by BorderTech.
the class ContextCleanupInterceptor method paint.
/**
* Override paint to clear out the scratch map and component models which are no longer necessary.
*
* @param renderContext the renderContext to send the output to.
*/
@Override
public void paint(final RenderContext renderContext) {
super.paint(renderContext);
UIContext uic = UIContextHolder.getCurrent();
if (LOG.isDebugEnabled()) {
UIContextDebugWrapper debugWrapper = new UIContextDebugWrapper(uic);
LOG.debug("Session usage after paint:\n" + debugWrapper);
}
LOG.debug("Performing session tidy up of WComponents (any WComponents disconnected from the active top component will not be tidied up.");
getUI().tidyUpUIContextForTree();
LOG.debug("After paint - Clearing scratch maps.");
uic.clearScratchMap();
uic.clearRequestScratchMap();
}
Aggregations