org.apache.servicemix.tck
Class ReceiverPojo

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.components.util.PojoSupport
          extended by org.apache.servicemix.tck.ReceiverPojo
All Implemented Interfaces:
javax.jbi.component.ComponentLifeCycle, javax.jbi.management.LifeCycleMBean, org.apache.servicemix.jbi.listener.MessageExchangeListener, MBeanInfoProvider, Receiver

public class ReceiverPojo
extends PojoSupport
implements javax.jbi.component.ComponentLifeCycle, MessageExchangeListener, Receiver

A simple POJO which just implements the ComponentLifeCycle interface and is not dependent on any ServiceMix code.

Version:
$Revision: 2153 $

Field Summary
static String ENDPOINT
           
static QName SERVICE
           
 
Fields inherited from class org.apache.servicemix.components.util.PojoSupport
logger
 
Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
currentState, INITIALIZED, listener
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Constructor Summary
ReceiverPojo()
           
ReceiverPojo(QName service, String endpoint)
           
 
Method Summary
protected  javax.jbi.messaging.NormalizedMessage getInMessage(javax.jbi.messaging.MessageExchange exchange)
          Returns the in message or throws an exception if there is no in message.
 MessageList getMessageList()
          Return access to the list of messages being received
 MessageTransformer getMessageTransformer()
           
 void onMessageExchange(javax.jbi.messaging.MessageExchange exchange)
           
 
Methods inherited from class org.apache.servicemix.components.util.PojoSupport
answer, done, fail, fail, getBody, getContext, getDeliveryChannel, getDescription, getEndpoint, getExchangeFactory, getExtensionMBeanName, getService, init, init, isInAndOut, send, sendSync, sendSync, setBody, setEndpoint, setExtensionMBeanName, setService, shutDown
 
Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
firePropertyChanged, getAttributeInfos, getCurrentState, getName, getObjectToManage, getOperationInfos, getSubType, getType, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jbi.component.ComponentLifeCycle
getExtensionMBeanName, init, shutDown, start, stop
 

Field Detail

SERVICE

public static final QName SERVICE

ENDPOINT

public static final String ENDPOINT
See Also:
Constant Field Values
Constructor Detail

ReceiverPojo

public ReceiverPojo()

ReceiverPojo

public ReceiverPojo(QName service,
                    String endpoint)
Method Detail

onMessageExchange

public void onMessageExchange(javax.jbi.messaging.MessageExchange exchange)
                       throws javax.jbi.messaging.MessagingException
Specified by:
onMessageExchange in interface org.apache.servicemix.jbi.listener.MessageExchangeListener
Throws:
javax.jbi.messaging.MessagingException

getInMessage

protected javax.jbi.messaging.NormalizedMessage getInMessage(javax.jbi.messaging.MessageExchange exchange)
                                                      throws NoInMessageAvailableException
Returns the in message or throws an exception if there is no in message.

Throws:
NoInMessageAvailableException

getMessageTransformer

public MessageTransformer getMessageTransformer()

getMessageList

public MessageList getMessageList()
Description copied from interface: Receiver
Return access to the list of messages being received

Specified by:
getMessageList in interface Receiver


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.