org.apache.camel.spi
Interface EndpointStrategy

All Known Implementing Classes:
InterceptSendToMockEndpointStrategy

public interface EndpointStrategy

Endpoint strategy with callback invoked when an Endpoint is about to be registered to the endpoint registry in CamelContext. This callback allows you to intervene and return a mixed in Endpoint.

The InterceptSendToEndpointDefinition uses this to allow it to proxy endpoints so it can intercept sending to the given endpoint.

Version:

Method Summary
 Endpoint registerEndpoint(String uri, Endpoint endpoint)
          Register the endpoint.
 

Method Detail

registerEndpoint

Endpoint registerEndpoint(String uri,
                          Endpoint endpoint)
Register the endpoint.

Parameters:
uri - uri of endpoint
endpoint - the current endpoint to register
Returns:
the real endpoint to register, for instance a wrapped/enhanced endpoint.


Apache CAMEL