Re: how to stop processing other rules if one is found

Splash Forums Rewrite Users how to stop processing other rules if one is found Re: how to stop processing other rules if one is found

#22285

Serkan Durusoy
Participant

Hi Lincoln,

I have a suggestion (I hope it makes sense)

Since we have “priorities”, why not keep them completely separate and depending on the priority, once one config is processed, do not continue on to the other configuration providers.

If one needs to combine multiple rules, it can be done within a single configuration provider.

If we need completely separate rulesets, having multiple configuration providers with different priorities would then make better sence (imho).

or perhaps instead of having one public Configuration getConfiguration(final ServletContext context) in a configuration provider, we can have multiple configurations as well as a configurationAssembler that can decide what to do while processing individual configurations.

Having written all this, a configurationAssembler actually begins to make more sense to me.