提供ESB 应用mule源代码 提供ESB 应用mule源代码

源代码在线查看: transformer.java

软件大小: 2317 K
上传用户: gdmichael
关键词: mule ESB 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*				 * $Id: Transformer.java 12422 2008-07-29 19:28:48Z 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.transformer;								import java.util.List;								/**				 * Transformer can be chained together to covert message payloads				 * from one object type to another.				 */				public interface Transformer extends BaseTransformer				{								    /**				     * Determines if a particular source class can be handled by this transformer				     *				     * @param aClass The class to check for compatability				     * @return true if the transformer supports this type of class or false				     *         otherwise				     */				    boolean isSourceTypeSupported(Class aClass);												    /**				     * Returns an unmodifiable list of Source types registered on this transformer				     *				     * @return an unmodifiable list of Source types registered on this transformer				     */				    List getSourceTypes();								    /**				     * Does this transformer allow null input?				     *				     * @return true if this transformer can accept null input				     */				    boolean isAcceptNull();								    boolean isIgnoreBadInput();								    /**				     * Thransforms the supplied data and returns the result				     *				     * @param src the data to transform				     * @return the transformed data				     * @throws TransformerException if a error occurs transforming the data or if the				     *                              expected returnClass isn't the same as the transformed data				     */				    Object transform(Object src) throws TransformerException;								    /**				     * Sets the expected return type for the transformed data. If the transformed				     * data is not of this class type a TransformerException will be				     * thrown.				     *				     * @param theClass the expected return type class				     */				    void setReturnClass(Class theClass);								    /** @return the exceptedreturn type */				    Class getReturnClass();								}							

相关资源