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
Exchanges.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterPropertiesConfigured(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:AfterPropertiesConfiguredCallback invoked after the element have configured its properties. This allows to perform any post init work.- Specified by:
afterPropertiesConfiguredin interfaceAfterPropertiesConfigured- Parameters:
camelContext- the Camel Context
-