001    /**
002     * Licensed to the Apache Software Foundation (ASF) under one or more
003     * contributor license agreements.  See the NOTICE file distributed with
004     * this work for additional information regarding copyright ownership.
005     * The ASF licenses this file to You under the Apache License, Version 2.0
006     * (the "License"); you may not use this file except in compliance with
007     * the License.  You may obtain a copy of the License at
008     *
009     *      http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */
017    package org.apache.camel.spring;
018    
019    import javax.xml.bind.annotation.XmlAccessType;
020    import javax.xml.bind.annotation.XmlAccessorType;
021    import javax.xml.bind.annotation.XmlAttribute;
022    import javax.xml.bind.annotation.XmlElement;
023    import javax.xml.bind.annotation.XmlRootElement;
024    
025    import org.apache.camel.LoggingLevel;
026    import org.apache.camel.model.IdentifiedType;
027    
028    /**
029     * The <errorHandler> tag element.
030     *
031     * @version 
032     */
033    @XmlRootElement(name = "errorHandler")
034    @XmlAccessorType(XmlAccessType.FIELD)
035    @SuppressWarnings("unused")
036    public class ErrorHandlerDefinition extends IdentifiedType {
037        @XmlAttribute
038        private ErrorHandlerType type = ErrorHandlerType.DefaultErrorHandler;
039        @XmlAttribute
040        private String deadLetterUri;
041        @XmlAttribute
042        private LoggingLevel level;
043        @XmlAttribute
044        private LoggingLevel rollbackLoggingLevel;
045        @XmlAttribute
046        private String logName;
047        @XmlAttribute
048        private Boolean useOriginalMessage;
049        @XmlAttribute
050        private String transactionTemplateRef;
051        @XmlAttribute
052        private String transactionManagerRef;
053        @XmlAttribute
054        private String onRedeliveryRef;
055        @XmlAttribute
056        private String retryWhileRef;
057        @XmlAttribute
058        private String redeliveryPolicyRef;
059        @XmlAttribute
060        private String executorServiceRef;
061        @XmlElement
062        private CamelRedeliveryPolicyFactoryBean redeliveryPolicy;
063    
064    }