Flavors update

This commit is contained in:
Petrutiu Mihai
2016-07-12 13:44:51 +03:00
parent 1ef2c4beb1
commit 4da3853e35

View File

@@ -28,6 +28,7 @@ Handling/Handler guarantee - you won't be sure that someone can process the requ
Runtime configuration risk - the order matters/and it might be that the chain is not configured correctly Runtime configuration risk - the order matters/and it might be that the chain is not configured correctly
Chain length/performance issues - in theory you could see a chain that is too big, and it would be a bottleneck in performance Chain length/performance issues - in theory you could see a chain that is too big, and it would be a bottleneck in performance
### e. Flavors: ### e. Flavors:
1. Execute first that matches the condition and exit -> Get one to process the request, or get the type of object 1. Execute first that matches the condition and exit -> Get one to process the request, or get the type of object
2. Execute all elements of chain until the condition does not match -> Execute all validators until one invalidates the request 2. Execute all elements of chain until the condition does not match -> Execute all validators until one invalidates the request
3. Always execute all handlers 3. Always execute all handlers