Package org.apache.camel.spi
Interface UnitOfWorkFactory
- All Superinterfaces:
AfterPropertiesConfigured
Factory to create
UnitOfWork
.
IMPORTANT: Implementing a custom UnitOfWorkFactory
is only intended for very rare and special
use-cases. The created UnitOfWork
is highly recommended to extend
org.apache.camel.impl.engine.DefaultUnitOfWork to ensure Camel functionality works correctly during routing of
Exchange
s.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
afterPropertiesConfigured
(CamelContext camelContext) Callback invoked after the element have configured its properties.createUnitOfWork
(Exchange exchange) Creates a newUnitOfWork
-
Method Details
-
createUnitOfWork
Creates a newUnitOfWork
- Parameters:
exchange
- the exchange- Returns:
- the created
UnitOfWork
-
afterPropertiesConfigured
Description copied from interface:AfterPropertiesConfigured
Callback invoked after the element have configured its properties. This allows to perform any post init work.- Specified by:
afterPropertiesConfigured
in interfaceAfterPropertiesConfigured
- Parameters:
camelContext
- the Camel Context
-