Java 类org.apache.camel.Property 实例源码

项目:metasfresh    文件:EDICompudataOrdersBean.java   
public List<Message> createXMLDocument(@Body final List<Object> ediLines,
        @Property(value = Exchange.FILE_NAME) final String CamelFileName,
        @Property(value = EDIOrderRoute.EDI_ORDER_EDIMessageDatePattern) final String EDIMessageDatePattern,
        @Property(value = EDIOrderRoute.EDI_ORDER_ADClientValue) final String ADClientValue,
        @Property(value = EDIOrderRoute.EDI_ORDER_ADOrgID) final BigInteger ADOrgID,
        @Property(value = EDIOrderRoute.EDI_ORDER_ADInputDataDestination_InternalName) final String ADInputDataDestination_InternalName,
        @Property(value = EDIOrderRoute.EDI_ORDER_ADInputDataSourceID) final BigInteger ADInputDataSourceID,
        @Property(value = EDIOrderRoute.EDI_ORDER_ADUserEnteredByID) final BigInteger ADUserEnteredByID,
        @Property(value = EDIOrderRoute.EDI_ORDER_DELIVERY_RULE) final String DeliveryRule,
        @Property(value = EDIOrderRoute.EDI_ORDER_DELIVERY_VIA_RULE) final String DeliveryViaRule)
{
    final List<OrderEDI> ediDocuments = getEDIDocumentObjects(ediLines);

    final EDIConfigurationContext ctx = new EDIConfigurationContext(CamelFileName,
            EDIMessageDatePattern, ADClientValue, ADOrgID,
            ADInputDataDestination_InternalName, ADInputDataSourceID, ADUserEnteredByID, DeliveryRule, DeliveryViaRule);

    final List<Message> olCandMessages = createOLCandMessages(ctx, ediDocuments);

    return olCandMessages;
}
项目:cleverbus    文件:MessageService.java   
/**
 * Changes state of the message to {@link MsgStateEnum#PARTLY_FAILED}.
 *
 * @param msg the message
 * @param ex the exception
 * @param errCode the error code that can be explicitly defined if needed
 * @param customData the custom data
 * @param props the exchange properties [property name; property value]
 */
void setStatePartlyFailed(@Header(MSG_HEADER) Message msg,
                          Exception ex,
                          @Property(EXCEPTION_ERROR_CODE) @Nullable ErrorExtEnum errCode,
                          @Property(CUSTOM_DATA_PROP) @Nullable String customData,
                          @Properties Map<String, Object> props);
项目:cleverbus    文件:MessageService.java   
/**
 * Changes state of the message to {@link MsgStateEnum#FAILED}.
 * <p/>
 * If message is child message then parent message will be marked as failed too.
 *
 * @param msg the message
 * @param ex the exception
 * @param errCode the error code that can be explicitly defined if needed
 * @param customData the custom data
 * @param props the exchange properties [property name; property value]
 */
void setStateFailed(@Header(MSG_HEADER) Message msg,
                    Exception ex,
                    @Property(EXCEPTION_ERROR_CODE) @Nullable ErrorExtEnum errCode,
                    @Property(CUSTOM_DATA_PROP) @Nullable String customData,
                    @Properties Map<String, Object> props);