mulesoft/mule — pull request #844 by dfeist (2014-07-16 17:37:39+00:00)
Title: Modifications to improve fix for MULE-7620

- Conserve existing (asynchronous) behaviour for one-way
OutboundEndpoint’s created with EndpointFactory.
- Conserve the check to see if the Connector is started before
AsyncInterceptingMessageProcessor is invoked to avoid NPE and give
decent error.
- Remove the additional layer of complexity introduced with the
addition of DefaultOutboundEndpointExecutorFactory,
DeferredLaxInterceptionMessageProcessor, OutboundEndpointWrapper and
LifecycleAwareOutboundEndpointMessageProcessor.

Rather than introduce non-compatible changes and increase complexity,
the decoupling of OutboundEndpoint from it’s threading behaviour is
best tackled in 4.0 where we have more liberty to change and improve
API. When we think about this more I am certain we’ll conclude that
DefaultOutboundEndpointExecutorFactory shouldn’t exist as a standalone
endpoint-specific concept in the MuleContext but rather it should be
the responsibility of the Flow to decide if one-way endpoints (and
connector operations!) should or shouldn’t use another thread.