inboundendpointfactorybean.java
来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 55 行
JAVA
55 行
/* * $Id: InboundEndpointFactoryBean.java 11079 2008-02-27 15:52:01Z 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.config.spring.factories;import org.mule.api.config.ConfigurationException;import org.mule.api.endpoint.EndpointException;import org.mule.api.endpoint.EndpointFactory;import org.mule.api.endpoint.InboundEndpoint;import org.mule.config.i18n.MessageFactory;import org.mule.endpoint.EndpointURIEndpointBuilder;/** * Spring FactoryBean used to create concrete instances of inbound endpoints */public class InboundEndpointFactoryBean extends AbstractEndpointFactoryBean{ public InboundEndpointFactoryBean(EndpointURIEndpointBuilder global) throws EndpointException { super(global); } public InboundEndpointFactoryBean() { super(); } public Class getObjectType() { return InboundEndpoint.class; } public Object doGetObject() throws Exception { EndpointFactory ef = muleContext.getRegistry().lookupEndpointFactory(); if (ef != null) { return ef.getInboundEndpoint(this); } else { throw new ConfigurationException(MessageFactory.createStaticMessage("EndpointFactory not found in Registry")); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?