callable.java
来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 46 行
JAVA
46 行
/* * $Id: Callable.java 11191 2008-03-06 02:34:11Z 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.api.lifecycle;import org.mule.api.MuleEventContext;/** * <code>Callable</code> is used to provide UMOs with an interface that supports * event calls. UMO components do not have to implement this interface, though the * <code>onCall</code> method provides an example lifecycle method that is executed * when an event is received for the implementing service. */public interface Callable extends EventListener{ /** * Passes the event to the listener * * @param eventContext the context of the current event being process * @return Object this object can be anything. When the * <code>LifecycleAdapter</code> for the service receives this * object it will first see if the Object is an <code>MuleMessage</code> * if not and the Object is not null a new message will be created using * the returned object as the payload. This new event will then get * published via the configured outbound router if- * <ol> * <li>One has been configured for the UMO.</li> * <li>the <code>setStopFurtherProcessing(true)</code> wasn't called * on the event context event.</li> * </ol> * @throws Exception if the event fails to process properly. If exceptions aren't * handled by the implementation they will be handled by the * exceptionListener associated with the service */ Object onCall(MuleEventContext eventContext) throws Exception;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?