⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientnamespacehandler.java

📁 提供ESB 应用mule源代码 提供ESB 应用mule源代码
💻 JAVA
字号:
/* * $Id: ClientNamespaceHandler.java 11447 2008-03-20 12:03:44Z tcarlson $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.module.client.config;import org.mule.config.spring.factories.InboundEndpointFactoryBean;import org.mule.config.spring.parsers.generic.ChildDefinitionParser;import org.mule.config.spring.parsers.specific.endpoint.GenericEndpointDefinitionParser;import org.mule.module.xml.transformer.wire.XStreamWireFormat;import org.mule.transformer.wire.SerializedMuleMessageWireFormat;import org.springframework.beans.factory.xml.NamespaceHandlerSupport;/** * TODO */public class ClientNamespaceHandler extends NamespaceHandlerSupport{    /**     * Invoked by the {@link org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader} after     * construction but before any custom elements are parsed.     *     * @see org.springframework.beans.factory.xml.NamespaceHandlerSupport#registerBeanDefinitionParser(String, org.springframework.beans.factory.xml.BeanDefinitionParser)     */    public void init()    {        registerBeanDefinitionParser("remote-dispatcher-agent", new RemoteDispatcherAgentDefinitionParser());        registerBeanDefinitionParser("remote-endpoint", new GenericEndpointDefinitionParser(InboundEndpointFactoryBean.class));        registerBeanDefinitionParser("xml-wire-format", new ChildDefinitionParser("wireFormat", XStreamWireFormat.class));        registerBeanDefinitionParser("serialization-wire-format", new ChildDefinitionParser("wireFormat", SerializedMuleMessageWireFormat.class));        registerBeanDefinitionParser("custom-wire-format", new ChildDefinitionParser("wireFormat"));    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -