org.apache.servicemix.common
Interface ServiceMixComponent

All Superinterfaces:
Component
All Known Implementing Classes:
BaseComponent, DefaultComponent

public interface ServiceMixComponent
extends Component

Represents an extended JBI Component implementation which exposes some extra features

Version:
$Revision: 33980 $

Method Summary
 ComponentContext getComponentContext()
           
 String getComponentName()
           
 QName getEPRElementName()
           
 Executor getExecutor()
           
 Log getLogger()
           
 Registry getRegistry()
           
 void prepareConsumerExchange(MessageExchange exchange, Endpoint endpoint)
          Prepare a consumer exchange from the given endpoint.
 void sendConsumerExchange(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

Executor getExecutor()
Returns:
Returns the executor for this component

getComponentContext

ComponentContext getComponentContext()
Returns:
Returns the components context

getComponentName

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

prepareConsumerExchange

void prepareConsumerExchange(MessageExchange exchange,
                             Endpoint endpoint)
                             throws 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:
MessagingException

sendConsumerExchange

void sendConsumerExchange(MessageExchange exchange,
                          Endpoint endpoint)
                          throws 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:
MessagingException

getEPRElementName

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


Copyright © 2005-2008. All Rights Reserved.