Search in sources :

Example 1 with CamelSerializationBuildItem

use of org.apache.camel.quarkus.core.deployment.spi.CamelSerializationBuildItem in project camel-quarkus by apache.

the class CamelSerializationProcessor method produceSerializationBuildItem.

@BuildStep
void produceSerializationBuildItem(CamelConfig config, BuildProducer<CamelSerializationBuildItem> serializationBuildItems) {
    final CamelConfig.ReflectionConfig reflectionConfig = config.native_.reflection;
    if (reflectionConfig.serializationEnabled) {
        LOGGER.debug("Registration of basic types for serialization is enabled via quarkus.camel.native.reflection.serialization-enabled");
        serializationBuildItems.produce(new CamelSerializationBuildItem());
    }
}
Also used : CamelConfig(org.apache.camel.quarkus.core.CamelConfig) CamelSerializationBuildItem(org.apache.camel.quarkus.core.deployment.spi.CamelSerializationBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Aggregations

BuildStep (io.quarkus.deployment.annotations.BuildStep)1 CamelConfig (org.apache.camel.quarkus.core.CamelConfig)1 CamelSerializationBuildItem (org.apache.camel.quarkus.core.deployment.spi.CamelSerializationBuildItem)1