Search in sources :

Example 1 with MyBatisBeanComponent

use of org.apache.camel.component.mybatis.MyBatisBeanComponent in project camel-quarkus by apache.

the class CamelMyBatisRecorder method createMyBatisBeanComponent.

public RuntimeValue<MyBatisBeanComponent> createMyBatisBeanComponent(RuntimeValue<SqlSessionFactory> sqlSessionFactory) {
    MyBatisBeanComponent component = new MyBatisBeanComponent();
    component.setSqlSessionFactory(sqlSessionFactory.getValue());
    return new RuntimeValue<>(component);
}
Also used : MyBatisBeanComponent(org.apache.camel.component.mybatis.MyBatisBeanComponent) RuntimeValue(io.quarkus.runtime.RuntimeValue)

Aggregations

RuntimeValue (io.quarkus.runtime.RuntimeValue)1 MyBatisBeanComponent (org.apache.camel.component.mybatis.MyBatisBeanComponent)1