org.apache.servicemix.bean.support
Class ExchangeTarget

java.lang.Object
  extended by org.apache.servicemix.bean.support.ExchangeTarget
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ExchangeTarget
extends Object
implements org.springframework.beans.factory.InitializingBean

An ExchangeTarget may be used to specify the target of an exchange, while retaining all the JBI features (interface based routing, service name based routing or endpoint routing).

Version:
$Revision: 1340 $
Author:
gnodet

Constructor Summary
ExchangeTarget()
           
 
Method Summary
 void afterPropertiesSet()
           
 void configureTarget(javax.jbi.messaging.MessageExchange exchange, javax.jbi.component.ComponentContext context)
          Configures the target on the newly created exchange
 String getEndpoint()
           
 QName getInterface()
           
 QName getOperation()
           
 QName getService()
           
 String getUri()
           
 void setEndpoint(String endpoint)
           
 void setInterface(QName itf)
           
 void setOperation(QName operation)
           
 void setService(QName service)
           
 void setUri(String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExchangeTarget

public ExchangeTarget()
Method Detail

getEndpoint

public String getEndpoint()
Returns:
Returns the endpoint.

setEndpoint

public void setEndpoint(String endpoint)
Parameters:
endpoint - The endpoint to set.

getInterface

public QName getInterface()
Returns:
Returns the interface name.

setInterface

public void setInterface(QName itf)
Parameters:
interface - name The interface name to set.

getOperation

public QName getOperation()
Returns:
Returns the operation name.

setOperation

public void setOperation(QName operation)
Parameters:
operation - The operation to set.

getService

public QName getService()
Returns:
Returns the service.

setService

public void setService(QName service)
Parameters:
service - The service to set.

getUri

public String getUri()
Returns:
the uri

setUri

public void setUri(String uri)
Parameters:
uri - the uri to set

configureTarget

public void configureTarget(javax.jbi.messaging.MessageExchange exchange,
                            javax.jbi.component.ComponentContext context)
                     throws javax.jbi.messaging.MessagingException
Configures the target on the newly created exchange

Parameters:
exchange - the exchange to configure
Throws:
javax.jbi.messaging.MessagingException - if the target could not be configured

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2010 FuseSource. All Rights Reserved.