Class HybrisThreadCleanup

java.lang.Object
de.hybris.platform.cockpit.util.HybrisThreadCleanup
All Implemented Interfaces:
org.zkoss.zk.ui.event.EventThreadCleanup

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cleanup(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event evt, 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 Details

    • HybrisThreadCleanup

      public HybrisThreadCleanup()
  • Method Details

    • cleanup

      public void cleanup(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event evt, List errs) throws 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:
      Exception
    • complete

      public void complete(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event evt) throws 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:
      Exception