SimpleUrlHandlerMapping uses a hashMap to hold the interceptors. Ordering can only be guaranteed by setting order property.. By default it does a random get from the hashMap.
http://kickjava.com/src/org/springframework/web/servlet/handler/SimpleUrlHandlerMapping.java.htm
extends
http://kickjava.com/src/org/springframework/web/servlet/handler/AbstractHandlerMapping.java.htm
I was wondering if such things goes live by getting a right value...how do they get caught as their order is random without explicitly saying so.
Maybe spring should warn us upfront..(or maybe it does?)
Useful link : http://forum.springsource.org/showthread.php?t=51281

http://kickjava.com/src/org/springframework/web/servlet/handler/SimpleUrlHandlerMapping.java.htm
extends
http://kickjava.com/src/org/springframework/web/servlet/handler/AbstractHandlerMapping.java.htm
I was wondering if such things goes live by getting a right value...how do they get caught as their order is random without explicitly saying so.
Maybe spring should warn us upfront..(or maybe it does?)
Useful link : http://forum.springsource.org/showthread.php?t=51281

No comments:
Post a Comment