当前位置: 首页>>代码示例>>Java>>正文


Java MessageHistoryFactory类代码示例

本文整理汇总了Java中org.apache.camel.spi.MessageHistoryFactory的典型用法代码示例。如果您正苦于以下问题:Java MessageHistoryFactory类的具体用法?Java MessageHistoryFactory怎么用?Java MessageHistoryFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MessageHistoryFactory类属于org.apache.camel.spi包,在下文中一共展示了MessageHistoryFactory类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: MessageHistoryAdvice

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
public MessageHistoryAdvice(MessageHistoryFactory factory, ProcessorDefinition<?> definition) {
    this.factory = factory;
    this.definition = definition;
    this.routeId = ProcessorDefinitionHelper.getRouteId(definition);
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:6,代码来源:CamelInternalProcessor.java

示例2: getMessageHistoryFactory

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
public MessageHistoryFactory getMessageHistoryFactory() {
    return messageHistoryFactory;
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:4,代码来源:DefaultCamelContext.java

示例3: setMessageHistoryFactory

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
public void setMessageHistoryFactory(MessageHistoryFactory messageHistoryFactory) {
    this.messageHistoryFactory = messageHistoryFactory;
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:4,代码来源:DefaultCamelContext.java

示例4: setupCustomServices

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
private void setupCustomServices() {
    ModelJAXBContextFactory modelJAXBContextFactory = getBeanForType(ModelJAXBContextFactory.class);
    if (modelJAXBContextFactory != null) {
        LOG.info("Using custom ModelJAXBContextFactory: {}", modelJAXBContextFactory);
        getContext().setModelJAXBContextFactory(modelJAXBContextFactory);
    }
    ClassResolver classResolver = getBeanForType(ClassResolver.class);
    if (classResolver != null) {
        LOG.info("Using custom ClassResolver: {}", classResolver);
        getContext().setClassResolver(classResolver);
    }
    FactoryFinderResolver factoryFinderResolver = getBeanForType(FactoryFinderResolver.class);
    if (factoryFinderResolver != null) {
        LOG.info("Using custom FactoryFinderResolver: {}", factoryFinderResolver);
        getContext().setFactoryFinderResolver(factoryFinderResolver);
    }
    ExecutorServiceManager executorServiceStrategy = getBeanForType(ExecutorServiceManager.class);
    if (executorServiceStrategy != null) {
        LOG.info("Using custom ExecutorServiceStrategy: {}", executorServiceStrategy);
        getContext().setExecutorServiceManager(executorServiceStrategy);
    }
    ThreadPoolFactory threadPoolFactory = getBeanForType(ThreadPoolFactory.class);
    if (threadPoolFactory != null) {
        LOG.info("Using custom ThreadPoolFactory: {}", threadPoolFactory);
        getContext().getExecutorServiceManager().setThreadPoolFactory(threadPoolFactory);
    }
    ProcessorFactory processorFactory = getBeanForType(ProcessorFactory.class);
    if (processorFactory != null) {
        LOG.info("Using custom ProcessorFactory: {}", processorFactory);
        getContext().setProcessorFactory(processorFactory);
    }
    Debugger debugger = getBeanForType(Debugger.class);
    if (debugger != null) {
        LOG.info("Using custom Debugger: {}", debugger);
        getContext().setDebugger(debugger);
    }
    UuidGenerator uuidGenerator = getBeanForType(UuidGenerator.class);
    if (uuidGenerator != null) {
        LOG.info("Using custom UuidGenerator: {}", uuidGenerator);
        getContext().setUuidGenerator(uuidGenerator);
    }
    NodeIdFactory nodeIdFactory = getBeanForType(NodeIdFactory.class);
    if (nodeIdFactory != null) {
        LOG.info("Using custom NodeIdFactory: {}", nodeIdFactory);
        getContext().setNodeIdFactory(nodeIdFactory);
    }
    StreamCachingStrategy streamCachingStrategy = getBeanForType(StreamCachingStrategy.class);
    if (streamCachingStrategy != null) {
        LOG.info("Using custom StreamCachingStrategy: {}", streamCachingStrategy);
        getContext().setStreamCachingStrategy(streamCachingStrategy);
    }
    MessageHistoryFactory messageHistoryFactory = getBeanForType(MessageHistoryFactory.class);
    if (messageHistoryFactory != null) {
        LOG.info("Using custom MessageHistoryFactory: {}", messageHistoryFactory);
        getContext().setMessageHistoryFactory(messageHistoryFactory);
    }
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:58,代码来源:AbstractCamelContextFactoryBean.java

示例5: getMessageHistoryFactory

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
@Override
public MessageHistoryFactory getMessageHistoryFactory() {
  return context.getMessageHistoryFactory();
}
 
开发者ID:rvs-fluid-it,项目名称:microservice-bundle,代码行数:5,代码来源:ManagedCamelContext.java

示例6: setMessageHistoryFactory

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
@Override
public void setMessageHistoryFactory(MessageHistoryFactory messageHistoryFactory) {
  context.setMessageHistoryFactory(messageHistoryFactory);
}
 
开发者ID:rvs-fluid-it,项目名称:microservice-bundle,代码行数:5,代码来源:ManagedCamelContext.java

示例7: getMessageHistoryFactory

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
@Override
public MessageHistoryFactory getMessageHistoryFactory() {
    return context.getMessageHistoryFactory();
}
 
开发者ID:commercehub-oss,项目名称:dropwizard-camel,代码行数:5,代码来源:ManagedCamelContext.java

示例8: setMessageHistoryFactory

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
@Override
public void setMessageHistoryFactory(MessageHistoryFactory messageHistoryFactory) {
    context.setMessageHistoryFactory(messageHistoryFactory);
}
 
开发者ID:commercehub-oss,项目名称:dropwizard-camel,代码行数:5,代码来源:ManagedCamelContext.java

示例9: getMessageHistoryFactory

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
/**
 * Gets the current {@link org.apache.camel.spi.MessageHistoryFactory}
 *
 * @return the factory
 */
MessageHistoryFactory getMessageHistoryFactory();
 
开发者ID:HydAu,项目名称:Camel,代码行数:7,代码来源:CamelContext.java

示例10: setMessageHistoryFactory

import org.apache.camel.spi.MessageHistoryFactory; //导入依赖的package包/类
/**
 * Sets a custom {@link org.apache.camel.spi.MessageHistoryFactory}
 *
 * @param messageHistoryFactory the custom factory
 */
void setMessageHistoryFactory(MessageHistoryFactory messageHistoryFactory);
 
开发者ID:HydAu,项目名称:Camel,代码行数:7,代码来源:CamelContext.java


注:本文中的org.apache.camel.spi.MessageHistoryFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。