Search in sources :

Example 26 with RuntimeValue

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);
}
Also used : MyBatisComponent(org.apache.camel.component.mybatis.MyBatisComponent) RuntimeValue(io.quarkus.runtime.RuntimeValue)

Example 27 with RuntimeValue

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);
}
Also used : BraintreeComponent(org.apache.camel.component.braintree.BraintreeComponent) RuntimeValue(io.quarkus.runtime.RuntimeValue) BraintreeConfiguration(org.apache.camel.component.braintree.BraintreeConfiguration)

Example 28 with RuntimeValue

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);
}
Also used : FhirContext(ca.uhn.fhir.context.FhirContext) RuntimeValue(io.quarkus.runtime.RuntimeValue)

Example 29 with RuntimeValue

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);
}
Also used : FhirContext(ca.uhn.fhir.context.FhirContext) RuntimeValue(io.quarkus.runtime.RuntimeValue)

Example 30 with RuntimeValue

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);
}
Also used : RuntimeValue(io.quarkus.runtime.RuntimeValue) DefaultExchangeFormatter(org.apache.camel.support.processor.DefaultExchangeFormatter) LogComponent(org.apache.camel.component.log.LogComponent)

Aggregations

RuntimeValue (io.quarkus.runtime.RuntimeValue)31 FhirContext (ca.uhn.fhir.context.FhirContext)4 BuildStep (io.quarkus.deployment.annotations.BuildStep)2 Record (io.quarkus.deployment.annotations.Record)2 CamelContext (org.apache.camel.CamelContext)2 Component (org.apache.camel.Component)2 KnativeComponent (org.apache.camel.component.knative.KnativeComponent)2 CamelProducers (org.apache.camel.quarkus.core.CamelProducers)2 ComponentCustomizer (org.apache.camel.spi.ComponentCustomizer)2 Logger (ch.qos.logback.classic.Logger)1 AWSLogs (com.amazonaws.services.logs.AWSLogs)1 AWSLogsClientBuilder (com.amazonaws.services.logs.AWSLogsClientBuilder)1 Configuration (freemarker.template.Configuration)1 Tracer (io.opentracing.Tracer)1 CloudWatchCredentialsProvider (io.quarkiverse.logging.cloudwatch.auth.CloudWatchCredentialsProvider)1 AdditionalBeanBuildItem (io.quarkus.arc.deployment.AdditionalBeanBuildItem)1 BeanRegistrationPhaseBuildItem (io.quarkus.arc.deployment.BeanRegistrationPhaseBuildItem)1 UnremovableBeanBuildItem (io.quarkus.arc.deployment.UnremovableBeanBuildItem)1 BuildExtension (io.quarkus.arc.processor.BuildExtension)1 ApplicationArchive (io.quarkus.deployment.ApplicationArchive)1