Reply To: Rewrite Annotations

Splash Forums Rewrite Users Rewrite Annotations Reply To: Rewrite Annotations

#24288

Hey all,

I’m back from my vacation. So I can join the discussion now. 🙂

Regarding the HandlerWeights constants. IMHO there are typically two types of annotation handlers:

The first type builds the basic structure of the rules. It creates for example conditions, operations or bindings. The other type of handler enriches/modifies the conditions/operations/parameters created by the first type of handlers. So the enriching handlers must always execute AFTER the structural ones.

Example: @Parameter creates a parameter binding. @Matches modifies the parameter binding by specifying a regular expression for it.

Lincoln is right. You can choose your own constants for ordering. These default ones are just there to simplify your life. 🙂