Package org.zkoss.spring.config

Source Code of org.zkoss.spring.config.ZkSpringSecurityNamespaceHandler

/* ZkSpringNamespaceHandler.java

{{IS_NOTE
  Purpose:
   
  Description:
   
  History:
    Oct 2, 2008 2:40:59 PM, Created by henrichen
}}IS_NOTE

Copyright (C) 2008 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
  This program is distributed under GPL Version 2.0 in the hope that
  it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package org.zkoss.spring.config;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
import org.springframework.security.config.http.ZkEventSecurityBeanDefinitionParser;
import org.zkoss.spring.security.config.ZkEventProcessDefinitionSourceBeanDefinitionParser;

/**
* Registers the bean definition parsers for the ZK + Spring Security namespace.
* (http://www.zkoss.org/2008/zkspring").
* @author henrichen
* @since 1.0
*/
public class ZkSpringSecurityNamespaceHandler extends NamespaceHandlerSupport {

  public void init() {
    //--Spring Security--//
    //<intercept-event event="..." path="..." access="..."/>
    registerBeanDefinitionParser("zk-event-process-definition-source", new ZkEventProcessDefinitionSourceBeanDefinitionParser());
    registerBeanDefinitionParser("zk-event", new ZkEventSecurityBeanDefinitionParser());
  }
}
TOP

Related Classes of org.zkoss.spring.config.ZkSpringSecurityNamespaceHandler

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.