All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kasource.kaevent.spring.xml.KaEventNamespaceHandler Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show newest version
/**
 * Name space handler form ka-event spring name space.
 * 
 * @author wigforss
 **/
package org.kasource.kaevent.spring.xml;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * @author Rikard Wigforss
 **/
public class KaEventNamespaceHandler extends NamespaceHandlerSupport {
    
    /**
     * Initialize the name space handler.
     **/
    public void init() {
        registerBeanDefinitionParser("beanResolver", new BeanResolverBeanDefinitionParser()); 
        registerBeanDefinitionParser("channel", new ChannelBeanDefinitionParser()); 
        registerBeanDefinitionParser("event", new EventBeanDefinitionParser()); 
        registerBeanDefinitionParser("kaevent", new KaEventConfigurerBeanDefinitionParser()); 

        registerBeanDefinitionDecoratorForAttribute("listen-on-bean", 
        		new RegisterBeanListenerBeanDefinitionDecorator());
        registerBeanDefinitionDecoratorForAttribute("listen-on-channel", 
        		new RegisterChannelListenerBeanDefinitionDecorator());
        registerBeanDefinitionDecoratorForAttribute("filter", 
        		new RegisterEventFilterBeanDefinitionDecorator());
        
		
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy