Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant disableXmlReifiers build step #6480

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import io.quarkus.runtime.RuntimeValue;
import io.smallrye.common.annotation.Identifier;
import org.apache.camel.impl.converter.BaseTypeConverterRegistry;
import org.apache.camel.quarkus.core.CamelCapabilities;
import org.apache.camel.quarkus.core.CamelConfig;
import org.apache.camel.quarkus.core.CamelConfigFlags;
import org.apache.camel.quarkus.core.CamelProducers;
Expand Down Expand Up @@ -347,15 +346,6 @@ public CamelModelToYAMLDumperBuildItem createModelToYAMLDumper(CamelRecorder rec
return new CamelModelToYAMLDumperBuildItem(recorder.newDisabledModelToYAMLDumper());
}

@BuildStep
@Record(ExecutionTime.STATIC_INIT)
void disableXmlReifiers(CamelRecorder recorder, Capabilities capabilities) {
if (!capabilities.isCapabilityWithPrefixPresent(CamelCapabilities.XML)) {
LOGGER.debug("Camel XML capability not detected, disable XML reifiers");
recorder.disableXmlReifiers();
}
}

@Record(ExecutionTime.STATIC_INIT)
@BuildStep
CamelFactoryFinderResolverBuildItem factoryFinderResolver(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
import org.apache.camel.ProducerTemplate;
import org.apache.camel.impl.DefaultModelReifierFactory;
import org.apache.camel.impl.engine.DefaultReactiveExecutor;
import org.apache.camel.model.ValidateDefinition;
import org.apache.camel.model.validator.PredicateValidatorDefinition;
import org.apache.camel.quarkus.core.FastFactoryFinderResolver.Builder;
import org.apache.camel.reifier.ProcessorReifier;
import org.apache.camel.reifier.validator.ValidatorReifier;
import org.apache.camel.spi.BeanProxyFactory;
import org.apache.camel.spi.ComponentNameResolver;
import org.apache.camel.spi.FactoryFinderResolver;
Expand Down Expand Up @@ -119,11 +115,6 @@ public void bind(
}
}

public void disableXmlReifiers() {
ProcessorReifier.registerReifier(ValidateDefinition.class, DisabledValidateReifier::new);
ValidatorReifier.registerReifier(PredicateValidatorDefinition.class, DisabledPredicateValidatorReifier::new);
}

public RuntimeValue<ModelJAXBContextFactory> newDisabledModelJAXBContextFactory() {
return new RuntimeValue<>(new DisabledModelJAXBContextFactory());
}
Expand Down