Skip to content

Commit

Permalink
Remove redundant disableXmlReifiers build step
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Sep 17, 2024
1 parent ef38103 commit 56e1b82
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
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

0 comments on commit 56e1b82

Please sign in to comment.