abstractendpointfactorybean.java

来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 59 行

JAVA
59
字号
/* * $Id: AbstractEndpointFactoryBean.java 11964 2008-06-05 19:31:23Z 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.factories;import org.mule.api.endpoint.EndpointException;import org.mule.api.lifecycle.Initialisable;import org.mule.api.lifecycle.InitialisationException;import org.mule.endpoint.EndpointURIEndpointBuilder;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.springframework.beans.factory.FactoryBean;/** * Abstract spring FactoryBean used to creating endpoints via spring. */public abstract class AbstractEndpointFactoryBean extends EndpointURIEndpointBuilder    implements FactoryBean, Initialisable{    protected final Log logger = LogFactory.getLog(getClass());    public AbstractEndpointFactoryBean(EndpointURIEndpointBuilder global) throws EndpointException    {        super(global);    }    public AbstractEndpointFactoryBean()    {        super();    }    public Object getObject() throws Exception    {        return doGetObject();    }    public boolean isSingleton()    {        return true;    }    public void initialise() throws InitialisationException    {        // subclasses may override this method    }    protected abstract Object doGetObject() throws Exception;}

⌨️ 快捷键说明

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