Package de.hybris.platform.cockpit.util
Class HybrisThreadInit
- java.lang.Object
-
- de.hybris.platform.cockpit.util.HybrisThreadInit
-
- All Implemented Interfaces:
org.zkoss.zk.ui.event.EventThreadInit
public class HybrisThreadInit extends java.lang.Object implements org.zkoss.zk.ui.event.EventThreadInitHelper class which is used to transfer any hybris specific threalocal settings from ZK's main servlet thread to ZK's event processing threads. (Since ZK is multi-threaded!)
-
-
Constructor Summary
Constructors Constructor Description HybrisThreadInit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaninit(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event event)Activates hybris specific threadlocal settings inside the zk event processing thread.voidprepare(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event event)Grabs hybris specific threadlocal settings and stores them within this object.
-
-
-
Method Detail
-
prepare
public void prepare(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event event) throws java.lang.ExceptionGrabs hybris specific threadlocal settings and stores them within this object. By now is saves the main thread's tenant and jalo session. This is possible since this method is called from zk main thread.- Specified by:
preparein interfaceorg.zkoss.zk.ui.event.EventThreadInit- Throws:
java.lang.Exception
-
init
public boolean init(org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.event.Event event) throws java.lang.ExceptionActivates hybris specific threadlocal settings inside the zk event processing thread. By now it restores the main thread's tenant and jalo session. Requiresprepare(Component, Event)being called before!- Specified by:
initin interfaceorg.zkoss.zk.ui.event.EventThreadInit- Throws:
java.lang.Exception
-
-