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

📄 endpointpropertyelementdefinitionparser.java

📁 提供ESB 应用mule源代码 提供ESB 应用mule源代码
💻 JAVA
字号:
/* * $Id: EndpointPropertyElementDefinitionParser.java 11967 2008-06-05 20:32:19Z dfeist $ * -------------------------------------------------------------------------------------- * 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.config.spring.parsers.specific.endpoint;import org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser;import org.mule.config.spring.parsers.assembly.MapEntryCombiner;import org.mule.config.spring.parsers.collection.ChildSingletonMapDefinitionParser;import org.mule.config.spring.parsers.delegate.AbstractSingleParentFamilyChildDefinitionParser;import org.mule.config.spring.parsers.generic.ChildDefinitionParser;import org.mule.config.spring.parsers.processors.AddAttribute;/** * This parser parses nested endpoint elements adding the resulting beans to the map * of properties on the EndpointBuilder rather than attempting to inject them on the * EndpointBuilder itself. */public class EndpointPropertyElementDefinitionParser extends AbstractSingleParentFamilyChildDefinitionParser{    public static final String ENDPOINT_PROPERTIES_ATTRIBUTE = "properties";    public EndpointPropertyElementDefinitionParser(String propertyKey, Class beanClass)    {        setReturnFirstResult(false);        addDelegate(new ChildSingletonMapDefinitionParser(ENDPOINT_PROPERTIES_ATTRIBUTE)).registerPreProcessor(            new AddAttribute(MapEntryCombiner.KEY, propertyKey))            .addCollection(ENDPOINT_PROPERTIES_ATTRIBUTE)            .setIgnoredDefault(true)            .removeIgnored(MapEntryCombiner.KEY)            .addIgnored(AbstractMuleBeanDefinitionParser.ATTRIBUTE_NAME);        addChildDelegate(new ChildDefinitionParser(MapEntryCombiner.VALUE, beanClass)).addIgnored(            AbstractMuleBeanDefinitionParser.ATTRIBUTE_NAME).addIgnored(MapEntryCombiner.KEY);    }}

⌨️ 快捷键说明

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