Example #1
0
 @SuppressWarnings("rawtypes")
 @Override
 public ProcessorDefinition createCamelDefinition() {
   PolicyDefinition answer = new PolicyDefinition();
   answer.setRef(toXmlPropertyValue(PROPERTY_REF, this.getRef()));
   super.savePropertiesToCamelDefinition(answer);
   return answer;
 }
Example #2
0
 @SuppressWarnings("rawtypes")
 @Override
 public ProcessorDefinition createCamelDefinition() {
   LoopDefinition answer = new LoopDefinition();
   answer.setExpression(toXmlPropertyValue(PROPERTY_EXPRESSION, this.getExpression()));
   answer.setCopy(toXmlPropertyValue(PROPERTY_COPY, this.getCopy()));
   super.savePropertiesToCamelDefinition(answer);
   return answer;
 }
Example #3
0
  @SuppressWarnings("rawtypes")
  @Override
  public ProcessorDefinition createCamelDefinition() {
    ConvertBodyDefinition answer = new ConvertBodyDefinition();

    answer.setType(toXmlPropertyValue(PROPERTY_TYPE, this.getType()));
    answer.setCharset(toXmlPropertyValue(PROPERTY_CHARSET, this.getCharset()));

    super.savePropertiesToCamelDefinition(answer);
    return answer;
  }
Example #4
0
 @SuppressWarnings("rawtypes")
 @Override
 public ProcessorDefinition createCamelDefinition() {
   DelayDefinition answer = new DelayDefinition();
   answer.setExpression(toXmlPropertyValue(PROPERTY_EXPRESSION, this.getExpression()));
   answer.setExecutorServiceRef(
       toXmlPropertyValue(PROPERTY_EXECUTORSERVICEREF, this.getExecutorServiceRef()));
   answer.setAsyncDelayed(toXmlPropertyValue(PROPERTY_ASYNCDELAYED, this.getAsyncDelayed()));
   answer.setCallerRunsWhenRejected(
       toXmlPropertyValue(PROPERTY_CALLERRUNSWHENREJECTED, this.getCallerRunsWhenRejected()));
   super.savePropertiesToCamelDefinition(answer);
   return answer;
 }
Example #5
0
  @SuppressWarnings("rawtypes")
  @Override
  public ProcessorDefinition createCamelDefinition() {
    LoadBalanceDefinition answer = new LoadBalanceDefinition();

    answer.setInheritErrorHandler(
        toXmlPropertyValue(
            PROPERTY_INHERITERRORHANDLER, Objects.<Boolean>getField(this, "inheritErrorHandler")));
    answer.setRef(toXmlPropertyValue(PROPERTY_REF, this.getRef()));
    answer.setLoadBalancerType(
        toXmlPropertyValue(PROPERTY_LOADBALANCERTYPE, this.getLoadBalancerType()));

    super.savePropertiesToCamelDefinition(answer);
    return answer;
  }