當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。