| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
package org.apache.camel.model; |
| 18 |
|
|
| 19 |
|
import java.util.ArrayList; |
| 20 |
|
import java.util.List; |
| 21 |
|
|
| 22 |
|
import javax.xml.bind.annotation.XmlElement; |
| 23 |
|
import javax.xml.bind.annotation.XmlElementRef; |
| 24 |
|
import javax.xml.bind.annotation.XmlType; |
| 25 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
| 26 |
|
import javax.xml.bind.annotation.XmlAccessType; |
| 27 |
|
|
| 28 |
|
import org.apache.commons.logging.Log; |
| 29 |
|
import org.apache.commons.logging.LogFactory; |
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
@XmlType(name = "outputType") |
| 37 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
| 38 |
159 |
public class OutputType extends ProcessorType { |
| 39 |
3 |
private static final transient Log LOG = LogFactory.getLog(OutputType.class); |
| 40 |
|
|
| 41 |
|
@XmlElementRef |
| 42 |
159 |
protected List<ProcessorType> outputs = new ArrayList<ProcessorType>(); |
| 43 |
|
@XmlElementRef |
| 44 |
159 |
private List<InterceptorType> interceptors = new ArrayList<InterceptorType>(); |
| 45 |
|
|
| 46 |
|
public List<ProcessorType> getOutputs() { |
| 47 |
168 |
return outputs; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public void setOutputs(List<ProcessorType> outputs) { |
| 51 |
0 |
this.outputs = outputs; |
| 52 |
0 |
if (outputs != null) { |
| 53 |
0 |
for (ProcessorType output : outputs) { |
| 54 |
0 |
configureChild(output); |
| 55 |
0 |
} |
| 56 |
|
} |
| 57 |
0 |
} |
| 58 |
|
|
| 59 |
|
public List<InterceptorType> getInterceptors() { |
| 60 |
150 |
return interceptors; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
public void setInterceptors(List<InterceptorType> interceptors) { |
| 64 |
0 |
this.interceptors = interceptors; |
| 65 |
0 |
} |
| 66 |
|
|
| 67 |
|
@Override |
| 68 |
|
protected void configureChild(ProcessorType output) { |
| 69 |
72 |
if (isInheritErrorHandler()) { |
| 70 |
72 |
output.setErrorHandlerBuilder(getErrorHandlerBuilder()); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
|
| 74 |
|
|
| 75 |
|
|
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 80 |
|
|
| 81 |
|
|
| 82 |
72 |
} |
| 83 |
|
} |