예제 #1
0
 @SuppressWarnings("rawtypes")
 @Override
 public ProcessorDefinition createCamelDefinition() {
   PolicyDefinition answer = new PolicyDefinition();
   answer.setRef(toXmlPropertyValue(PROPERTY_REF, this.getRef()));
   super.savePropertiesToCamelDefinition(answer);
   return answer;
 }
예제 #2
0
파일: Loop.java 프로젝트: paulorcf/fuseide
 @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;
 }
예제 #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;
  }
예제 #4
0
파일: Delay.java 프로젝트: paulorcf/fuseide
 @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;
 }
예제 #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;
  }