use of io.quarkus.runtime.RuntimeValue in project camel-quarkus by apache.
the class CamelMyBatisRecorder method createMyBatisComponent.
public RuntimeValue<MyBatisComponent> createMyBatisComponent(RuntimeValue<SqlSessionFactory> sqlSessionFactory) {
MyBatisComponent component = new MyBatisComponent();
component.setSqlSessionFactory(sqlSessionFactory.getValue());
return new RuntimeValue<>(component);
}
use of io.quarkus.runtime.RuntimeValue in project camel-quarkus by apache.
the class BraintreeRecorder method configureBraintreeComponent.
/**
* Always disable the {@link org.apache.camel.component.braintree.internal.BraintreeLogHandler}.
*
* It's not desirable to configure this where an existing JUL - SLF4J bridge exists on the classpath.
*/
public RuntimeValue<BraintreeComponent> configureBraintreeComponent() {
BraintreeComponent component = new BraintreeComponent();
BraintreeConfiguration configuration = new BraintreeConfiguration();
configuration.setLogHandlerEnabled(false);
component.setConfiguration(configuration);
return new RuntimeValue<>(component);
}
use of io.quarkus.runtime.RuntimeValue in project camel-quarkus by apache.
the class FhirContextRecorder method createR5FhirContext.
public RuntimeValue<FhirContext> createR5FhirContext(Collection<String> resourceDefinitions) {
FhirContext fhirContext = FhirContext.forR5();
initContext(resourceDefinitions, fhirContext);
return new RuntimeValue<>(fhirContext);
}
use of io.quarkus.runtime.RuntimeValue in project camel-quarkus by apache.
the class FhirContextRecorder method createDstu3FhirContext.
public RuntimeValue<FhirContext> createDstu3FhirContext(Collection<String> resourceDefinitions) {
FhirContext fhirContext = FhirContext.forDstu3();
initContext(resourceDefinitions, fhirContext);
return new RuntimeValue<>(fhirContext);
}
use of io.quarkus.runtime.RuntimeValue in project camel-quarkus by apache.
the class SupportRecorder method logComponent.
public RuntimeValue<Component> logComponent() {
DefaultExchangeFormatter def = new DefaultExchangeFormatter();
def.setShowAll(true);
def.setMultiline(true);
LogComponent component = new LogComponent();
component.setExchangeFormatter(def);
return new RuntimeValue<>(component);
}
Aggregations