Class HybrisThreadCleanup

  • All Implemented Interfaces:
    org.zkoss.zk.ui.event.EventThreadCleanup

    public class HybrisThreadCleanup
    extends java.lang.Object
    implements org.zkoss.zk.ui.event.EventThreadCleanup
    Hybris specific cleanup class which is called when leaving a ZK event processing thread.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanup​(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event evt, java.util.List errs)
      De-activates hybris specific threadlocal settings within a zk event processing thread.
      void complete​(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event evt)
      Called back in the main thread after a zk event thread has been processed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HybrisThreadCleanup

        public HybrisThreadCleanup()
    • Method Detail

      • cleanup

        public void cleanup​(org.zkoss.zk.ui.Component comp,
                            org.zkoss.zk.ui.event.Event evt,
                            java.util.List errs)
                     throws java.lang.Exception
        De-activates hybris specific threadlocal settings within a zk event processing thread. By now it deactivates the event thread's jalo session and unsets the current tenant.
        Specified by:
        cleanup in interface org.zkoss.zk.ui.event.EventThreadCleanup
        Throws:
        java.lang.Exception
      • complete

        public void complete​(org.zkoss.zk.ui.Component comp,
                             org.zkoss.zk.ui.event.Event evt)
                      throws java.lang.Exception
        Called back in the main thread after a zk event thread has been processed. Does nothing right now.
        Specified by:
        complete in interface org.zkoss.zk.ui.event.EventThreadCleanup
        Throws:
        java.lang.Exception