Java 类org.apache.camel.spi.UnitOfWorkFactory 实例源码

项目:camel-springboot    文件:Application.java   
/**
 * Enable custom unit of work. UnitOfWorkFactory bean is automatically picked up by Camel context
 */
@Bean
UnitOfWorkFactory customUnitOfWorkFactory() {
    return new UnitOfWorkFactory() {
        @Override
        public UnitOfWork createUnitOfWork(Exchange exchange) {
            return new CustomMDCBreadCrumbIdUnitOfWork(exchange);
        }
    };
}
项目:Camel    文件:DefaultCamelContext.java   
public UnitOfWorkFactory getUnitOfWorkFactory() {
    return unitOfWorkFactory;
}
项目:Camel    文件:DefaultCamelContext.java   
public void setUnitOfWorkFactory(UnitOfWorkFactory unitOfWorkFactory) {
    this.unitOfWorkFactory = unitOfWorkFactory;
}
项目:microservice-bundle    文件:ManagedCamelContext.java   
@Override
public UnitOfWorkFactory getUnitOfWorkFactory() {
  return context.getUnitOfWorkFactory();
}
项目:microservice-bundle    文件:ManagedCamelContext.java   
@Override
public void setUnitOfWorkFactory(UnitOfWorkFactory unitOfWorkFactory) {
  context.setUnitOfWorkFactory(unitOfWorkFactory);
}
项目:dropwizard-camel    文件:ManagedCamelContext.java   
@Override
public UnitOfWorkFactory getUnitOfWorkFactory() {
    return context.getUnitOfWorkFactory();
}
项目:dropwizard-camel    文件:ManagedCamelContext.java   
@Override
public void setUnitOfWorkFactory(UnitOfWorkFactory unitOfWorkFactory) {
    context.setUnitOfWorkFactory(unitOfWorkFactory);
}
项目:Camel    文件:CamelContext.java   
/**
 * Gets the {@link UnitOfWorkFactory} to use.
 */
UnitOfWorkFactory getUnitOfWorkFactory();
项目:Camel    文件:CamelContext.java   
/**
 * Sets a custom {@link UnitOfWorkFactory} to use.
 */
void setUnitOfWorkFactory(UnitOfWorkFactory unitOfWorkFactory);