org.zkoss.spring.util
Class ZkSpringIntegrationContext

java.lang.Object
  extended by org.zkoss.spring.util.ZkSpringIntegrationContext

public class ZkSpringIntegrationContext
extends java.lang.Object

This class provides ThreadLocal storage of context components. Nomally it is used to set context components prior to injecting child ZK compoents in subclasses extending GenericComposer

This class also provides utility methods to set/get self component used while publishing events using CDI event notification model

Author:
ashish
See Also:
GenericComposer

Constructor Summary
ZkSpringIntegrationContext()
           
 
Method Summary
static void clearContextComponent()
          Clears context component from ZK CDI integration context that was set prior to ZK component injection
static org.zkoss.zk.ui.Component getContextComponent()
          returns current thread's context component
static org.zkoss.zk.ui.Component getSelfContextComponent()
          Returns current self context component
static void setContextComponent(org.zkoss.zk.ui.Component component)
          Sets context component which is later required for ZK component injection
static void setSelfContextComponent(org.zkoss.zk.ui.Component component)
          Sets self context component which is later required for ZK event processing using CDI event notificatio model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZkSpringIntegrationContext

public ZkSpringIntegrationContext()
Method Detail

getContextComponent

public static org.zkoss.zk.ui.Component getContextComponent()
returns current thread's context component

Returns:
Component

setContextComponent

public static void setContextComponent(org.zkoss.zk.ui.Component component)
Sets context component which is later required for ZK component injection

Parameters:
component - parent component

clearContextComponent

public static void clearContextComponent()
Clears context component from ZK CDI integration context that was set prior to ZK component injection


setSelfContextComponent

public static void setSelfContextComponent(org.zkoss.zk.ui.Component component)
Sets self context component which is later required for ZK event processing using CDI event notificatio model

Parameters:
component - target component

getSelfContextComponent

public static org.zkoss.zk.ui.Component getSelfContextComponent()
Returns current self context component



Copyright © 2005-2007 Potix Corporation. All Rights Reserved.