Package org.zkoss.zk.ui.util

Examples of org.zkoss.zk.ui.util.Configuration.addListener()


    if (_webApp == null) {
      final WebManager webman = WebManager.getWebManager(getServletContext());
      _webApp = webman.getWebApp();
      Configuration conf = _webApp.getConfiguration();
      try {
        conf.addListener(ZkFlowControllerListener.class);
        conf.addListener(ZkFlowResourceListener.class);
      } catch (Exception e) {
        //log and ignore
            if (logger.isDebugEnabled()) {
                logger.debug("Added ZK Spring Listeners Failed: " + e);
View Full Code Here


      final WebManager webman = WebManager.getWebManager(getServletContext());
      _webApp = webman.getWebApp();
      Configuration conf = _webApp.getConfiguration();
      try {
        conf.addListener(ZkFlowControllerListener.class);
        conf.addListener(ZkFlowResourceListener.class);
      } catch (Exception e) {
        //log and ignore
            if (logger.isDebugEnabled()) {
                logger.debug("Added ZK Spring Listeners Failed: " + e);
            }
View Full Code Here

    final ConfigurableApplicationContext ctx = (ConfigurableApplicationContext)
      WebApplicationContextUtils.getRequiredWebApplicationContext((ServletContext)wapp.getNativeContext());
   
    //add listener for ZK + Security
    if (ctx.containsBeanDefinition(ZkBeanIds.ZK_DESKTOP_REUSE_FILTER)) {
      conf.addListener(ZkSecurityContextListener.class);
      conf.addListener(ZkExceptionTranslationListener.class);
      conf.addListener(ZkEventProcessListener.class);
    }
   
    String classes = Library.getProperty(RESOLVER_CLASS);
View Full Code Here

      WebApplicationContextUtils.getRequiredWebApplicationContext((ServletContext)wapp.getNativeContext());
   
    //add listener for ZK + Security
    if (ctx.containsBeanDefinition(ZkBeanIds.ZK_DESKTOP_REUSE_FILTER)) {
      conf.addListener(ZkSecurityContextListener.class);
      conf.addListener(ZkExceptionTranslationListener.class);
      conf.addListener(ZkEventProcessListener.class);
    }
   
    String classes = Library.getProperty(RESOLVER_CLASS);
    if (classes == null) {
View Full Code Here

   
    //add listener for ZK + Security
    if (ctx.containsBeanDefinition(ZkBeanIds.ZK_DESKTOP_REUSE_FILTER)) {
      conf.addListener(ZkSecurityContextListener.class);
      conf.addListener(ZkExceptionTranslationListener.class);
      conf.addListener(ZkEventProcessListener.class);
    }
   
    String classes = Library.getProperty(RESOLVER_CLASS);
    if (classes == null) {
      Library.setProperty(RESOLVER_CLASS, SECURITY_RESOLVER);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.