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

📄 connector.vm

📁 提供ESB 应用mule源代码 提供ESB 应用mule源代码
💻 VM
字号:
/* * $Id$ * -------------------------------------------------------------------------------------- * 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.transport.${TransportNameLower};import org.mule.transport.AbstractConnector;import org.mule.api.MuleException;import org.mule.api.lifecycle.InitialisationException;/** * <code>${TransportName}Connector</code> TODO document */public class ${TransportName}Connector extends AbstractConnector{    /* For general guidelines on writing transports see       http://mule.mulesource.org/display/MULE/Writing+Transports */    /* IMPLEMENTATION NOTE: All configuaration for the transport should be set       on the Connector object, this is the object that gets configured in       MuleXml */    public void doInitialise() throws InitialisationException    {        // Optional; does not need to be implemented. Delete if not required        /* IMPLEMENTATION NOTE: Is called once all bean properties have been           set on the connector and can be used to validate and initialise the           connectors state. */    }    public void doConnect() throws Exception    {        // Optional; does not need to be implemented. Delete if not required        /* IMPLEMENTATION NOTE: Makes a connection to the underlying           resource. When connections are managed at the receiver/dispatcher           level, this method may do nothing */    }    public void doDisconnect() throws Exception    {        // Optional; does not need to be implemented. Delete if not required        /* IMPLEMENTATION NOTE: Disconnects any connections made in the           connect method If the connect method did not do anything then this           method shouldn't do anything either. */    }    public void doStart() throws MuleException    {        // Optional; does not need to be implemented. Delete if not required        /* IMPLEMENTATION NOTE: If there is a single server instance or           connection associated with the connector i.e.  AxisServer or a Jms           Connection or Jdbc Connection, this method should put the resource           in a started state here. */    }    public void doStop() throws MuleException    {        // Optional; does not need to be implemented. Delete if not required        /* IMPLEMENTATION NOTE: Should put any associated resources into a           stopped state. Mule will automatically call the stop() method. */    }    public void doDispose()    {        // Optional; does not need to be implemented. Delete if not required        /* IMPLEMENTATION NOTE: Should clean up any open resources associated           with the connector. */    }    public String getProtocol()    {        return "${TransportNameLower}";    }}

⌨️ 快捷键说明

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