interceptor.java
来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 37 行
JAVA
37 行
/* * $Id: Interceptor.java 12558 2008-08-25 19:09: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.api.interceptor;import org.mule.api.MuleException;import org.mule.api.MuleMessage;/** * <code>Interceptor</code> is based on a similar concept of servlet filters and * works much the same way. This method is more commonally known as the interceptor * pattern and it allows for pre and processing of invocations on the object being * intercepted. */public interface Interceptor{ /** * Invoked when the component should be called. The implementation can call * {@link Invocation#execute()} to call the component. * * @param invocation the invocation containing info about the current message and * service * @return A result message that may have been altered by this invocation * @throws org.mule.api.MuleException if the invocation fails */ MuleMessage intercept(Invocation invocation) throws MuleException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?