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


Java UnmarshalDefinition类代码示例

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


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

示例1: canAcceptOutput

import org.apache.camel.model.UnmarshalDefinition; //导入依赖的package包/类
public static boolean canAcceptOutput(Class<?> aClass, ProcessorDefinition def) {
    if (aClass == null) {
        return false;
    }

    // special for bean/marshal/unmarshal, until their isOutputSupport would return false
    if (BeanDefinition.class.isAssignableFrom(aClass)) {
        return false;
    }
    if (MarshalDefinition.class.isAssignableFrom(aClass) ||
            UnmarshalDefinition.class.isAssignableFrom(aClass) ||
            TransactedDefinition.class.isAssignableFrom(aClass)) {
        return false;
    }

    // use isOutputSupport on camel model
    if (ProcessorDefinition.class.isAssignableFrom(aClass)) {
        if (def != null) {
            boolean answer = def.isOutputSupported();
            return answer;
        }
    }

    // assume no output is supported
    return false;
}
 
开发者ID:fabric8io,项目名称:fabric8-forge,代码行数:27,代码来源:CamelModelUtils.java

示例2: ManagedUnmarshal

import org.apache.camel.model.UnmarshalDefinition; //导入依赖的package包/类
public ManagedUnmarshal(CamelContext context, UnmarshalProcessor processor, UnmarshalDefinition definition) {
    super(context, processor, definition);
    this.processor = processor;
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:5,代码来源:ManagedUnmarshal.java

示例3: getDefinition

import org.apache.camel.model.UnmarshalDefinition; //导入依赖的package包/类
@Override
public UnmarshalDefinition getDefinition() {
    return (UnmarshalDefinition) super.getDefinition();
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:5,代码来源:ManagedUnmarshal.java

示例4: findOutputComponents

import org.apache.camel.model.UnmarshalDefinition; //导入依赖的package包/类
@SuppressWarnings({"rawtypes"})
private void findOutputComponents(List<ProcessorDefinition<?>> defs, Set<String> components, Set<String> languages, Set<String> dataformats) {
    if (defs != null) {
        for (ProcessorDefinition<?> def : defs) {
            if (def instanceof SendDefinition) {
                findUriComponent(((SendDefinition) def).getUri(), components);
            }
            if (def instanceof MarshalDefinition) {
                findDataFormat(((MarshalDefinition) def).getDataFormatType(), dataformats);
            }
            if (def instanceof UnmarshalDefinition) {
                findDataFormat(((UnmarshalDefinition) def).getDataFormatType(), dataformats);
            }
            if (def instanceof ExpressionNode) {
                findLanguage(((ExpressionNode) def).getExpression(), languages);
            }
            if (def instanceof ResequenceDefinition) {
                findLanguage(((ResequenceDefinition) def).getExpression(), languages);
            }
            if (def instanceof AggregateDefinition) {
                findLanguage(((AggregateDefinition) def).getExpression(), languages);
                findLanguage(((AggregateDefinition) def).getCorrelationExpression(), languages);
                findLanguage(((AggregateDefinition) def).getCompletionPredicate(), languages);
                findLanguage(((AggregateDefinition) def).getCompletionTimeoutExpression(), languages);
                findLanguage(((AggregateDefinition) def).getCompletionSizeExpression(), languages);
            }
            if (def instanceof CatchDefinition) {
                findLanguage(((CatchDefinition) def).getHandled(), languages);
            }
            if (def instanceof OnExceptionDefinition) {
                findLanguage(((OnExceptionDefinition) def).getRetryWhile(), languages);
                findLanguage(((OnExceptionDefinition) def).getHandled(), languages);
                findLanguage(((OnExceptionDefinition) def).getContinued(), languages);
            }
            if (def instanceof SortDefinition) {
                findLanguage(((SortDefinition) def).getExpression(), languages);
            }
            if (def instanceof WireTapDefinition) {
                findLanguage(((WireTapDefinition<?>) def).getNewExchangeExpression(), languages);
            }
            findOutputComponents(def.getOutputs(), components, languages, dataformats);
        }
    }
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:45,代码来源:CamelNamespaceHandler.java


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