use of org.apache.camel.language.csimple.CSimpleLanguage in project camel-quarkus by apache.
the class CSimpleProcessor method configureCSimpleLanguage.
@Record(ExecutionTime.STATIC_INIT)
@BuildStep
@Consume(CamelContextBuildItem.class)
CamelBeanBuildItem configureCSimpleLanguage(RecorderContext recorderContext, CSimpleLanguageRecorder recorder, List<CompiledCSimpleExpressionBuildItem> compiledCSimpleExpressions) {
final RuntimeValue<Builder> builder = recorder.csimpleLanguageBuilder();
for (CompiledCSimpleExpressionBuildItem expr : compiledCSimpleExpressions) {
recorder.addExpression(builder, recorderContext.newInstance(expr.getClassName()));
}
final RuntimeValue<?> csimpleLanguage = recorder.buildCSimpleLanguage(builder);
return new CamelBeanBuildItem("csimple", CSimpleLanguage.class.getName(), csimpleLanguage);
}
Aggregations