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