org.apache.servicemix.common
Interface ServiceMixComponent

All Superinterfaces:
javax.jbi.component.Component
All Known Implementing Classes:
BaseComponent, DefaultComponent

public interface ServiceMixComponent
extends javax.jbi.component.Component

Represents an extended JBI Component implementation which exposes some extra features

Version:
$Revision: 513653 $

Method Summary
 javax.jbi.component.ComponentContext getComponentContext()
           
 String getComponentName()
           
 QName getEPRElementName()
           
 org.apache.servicemix.executors.Executor getExecutor()
           
 Log getLogger()
           
 Registry getRegistry()
           
 void prepareConsumerExchange(javax.jbi.messaging.MessageExchange exchange, Endpoint endpoint)
          Prepare a consumer exchange from the given endpoint.
 void sendConsumerExchange(javax.jbi.messaging.MessageExchange exchange, Endpoint endpoint)
          Deprecated. use prepareConsumerExchange
 
Methods inherited from interface javax.jbi.component.Component
getLifeCycle, getServiceDescription, getServiceUnitManager, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, resolveEndpointReference
 

Method Detail

getLogger

Log getLogger()
Returns:
Returns the logger.

getRegistry

Registry getRegistry()
Returns:
Returns the registry.

getExecutor

org.apache.servicemix.executors.Executor getExecutor()
Returns:
Returns the executor for this component

getComponentContext

javax.jbi.component.ComponentContext getComponentContext()
Returns:
Returns the components context

getComponentName

String getComponentName()
Returns:
Returns the name of the component

prepareConsumerExchange

void prepareConsumerExchange(javax.jbi.messaging.MessageExchange exchange,
                             Endpoint endpoint)
                             throws javax.jbi.messaging.MessagingException
Prepare a consumer exchange from the given endpoint. The caller need to send / sendSync the exchange.

Parameters:
exchange - the exchange to send
endpoint - the endpoint sending the exchange
Throws:
javax.jbi.messaging.MessagingException

sendConsumerExchange

void sendConsumerExchange(javax.jbi.messaging.MessageExchange exchange,
                          Endpoint endpoint)
                          throws javax.jbi.messaging.MessagingException
Deprecated. use prepareConsumerExchange

Sends a consumer exchange from the given endpoint.

Parameters:
exchange - the exchange to send
endpoint - the endpoint sending the exchange
Throws:
javax.jbi.messaging.MessagingException

getEPRElementName

QName getEPRElementName()
Returns:
the QName of the element used in EPR


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