1 /* 2 * $Id: MessageSource.java 20813 2010-12-21 11:37:48Z dirk.olmes $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 5 * 6 * The software in this package is published under the terms of the CPAL v1.0 7 * license, a copy of which has been included with this distribution in the 8 * LICENSE.txt file. 9 */ 10 11 package org.mule.api.source; 12 13 import org.mule.api.processor.MessageProcessor; 14 15 /** 16 * Implemented by objects that receives or generates messages which are then 17 * processed by a {@link MessageProcessor}. 18 * 19 * @since 3.0 20 */ 21 public interface MessageSource 22 { 23 /** 24 * Set the MessageProcessor listener on a message source which will be invoked 25 * when a message is received or generated. 26 */ 27 void setListener(MessageProcessor listener); 28 }