Package org.apache.camel.spi
Interface DeferServiceFactory
public interface DeferServiceFactory
Factory to create services such as
Producer
s and defer starting the created service, until
CamelContext
has been started.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateProducer
(Endpoint endpoint) Creates theProducer
which is deferred started untilCamelContext
is being started.
-
Field Details
-
FACTORY
Service factory key.- See Also:
-
-
Method Details
-
createProducer
Creates theProducer
which is deferred started untilCamelContext
is being started. When the producer is started, it re-lookup the endpoint to capture any changes such as the endpoint has been intercepted. This allows the producer to react and send messages to the updated endpoint.- Parameters:
endpoint
- the endpoint- Returns:
- the producer which will be deferred started until
CamelContext
has been started - Throws:
Exception
- can be thrown if there is an error starting the producer
-