Custom service implementation

I’m looking to make my own implementation of ConditionDescriptorsTreeBuilderAPI. How would I tell Spring to use my implmentation over the JMix implementation?

The common approach to overriding Spring beans is described at Extending Functionality :: Jmix Documentation.

For this particular bean you should create a class like this:

@Primary
@Component
@Scope("prototype")
public class MyConditionDescriptorsTreeBuilder extends ConditionDescriptorsTreeBuilder {
}

and a constructor with the same set of arguments as in ConditionDescriptorsTreeBuilder.