Interface EndpointStrategy


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.

  • Method Details

    • 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.