Package org.apache.camel.spi
Interface DeferServiceFactory
-
public interface DeferServiceFactory
Factory to create services such asProducer
s and defer starting the created service, untilCamelContext
has been started.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Producer
createProducer(Endpoint endpoint)
Creates theProducer
which is deferred started untilCamelContext
is being started.
-
-
-
Field Detail
-
FACTORY
static final String FACTORY
Service factory key.- See Also:
- Constant Field Values
-
-
Method Detail
-
createProducer
Producer createProducer(Endpoint endpoint) throws Exception
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
-
-