org.apache.servicemix.components.util
Class ChainedComponent

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.components.util.PojoSupport
          extended by org.apache.servicemix.components.util.ComponentSupport
              extended by org.apache.servicemix.components.util.TransformComponentSupport
                  extended by org.apache.servicemix.components.util.ChainedComponent
All Implemented Interfaces:
javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, javax.jbi.management.LifeCycleMBean, org.apache.servicemix.jbi.listener.MessageExchangeListener, MBeanInfoProvider

Deprecated. use the StaticRoutingSlip pattern from the EIP component instead

public class ChainedComponent
extends TransformComponentSupport

This class allows a series of componeents to be chained together. It will invoke the first service, then take the output of that first service as the input to the next service, and return the overall results when finished. All properties and attachments are maintained.

Author:
birchfieldj

Field Summary
 
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
ChainedComponent()
          Deprecated.  
 
Method Summary
 void setServices(QName[] services)
          Deprecated. Allows the services to be set
protected  boolean transform(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in, javax.jbi.messaging.NormalizedMessage out)
          Deprecated. Transforms the given out message
 
Methods inherited from class org.apache.servicemix.components.util.TransformComponentSupport
copyPropertiesAndAttachments, isCopyAttachments, isCopyProperties, onMessageExchange, setCopyAttachments, setCopyProperties
 
Methods inherited from class org.apache.servicemix.components.util.ComponentSupport
createComponentLifeCycle, createInOnlyExchange, createInOnlyExchange, createInOnlyExchange, createInOptionalOutExchange, createInOutExchange, createInOutExchange, createRobustInOnlyExchange, createServiceUnitManager, creatInOutExchange, forwardToExchange, forwardToExchange, getInMessage, getLifeCycle, getMessageTransformer, getServiceDescription, getServiceUnitManager, initializeServiceUnitManager, invoke, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, propagateCorrelationId, resolveEndpointReference, setMessageTransformer
 
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
start, stop
 

Constructor Detail

ChainedComponent

public ChainedComponent()
Deprecated. 
Method Detail

transform

protected boolean transform(javax.jbi.messaging.MessageExchange exchange,
                            javax.jbi.messaging.NormalizedMessage in,
                            javax.jbi.messaging.NormalizedMessage out)
                     throws javax.jbi.messaging.MessagingException
Deprecated. 
Description copied from class: TransformComponentSupport
Transforms the given out message

Specified by:
transform in class TransformComponentSupport
Throws:
javax.jbi.messaging.MessagingException

setServices

public void setServices(QName[] services)
Deprecated. 
Allows the services to be set

Parameters:
services - a collection of QNAmes representing the services to be invoked.


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.