protected Comparator < RequestMapperBean > newComparator ( ) { return new Comparator < RequestMapperBean > ( ) { @ Override public int compare ( final RequestMapperBean o1 , final RequestMapperBean o2 ) { return o1 . getCompatibilityScore ( ) - o2 . getCompatibilityScore ( ) ; } } ; }
Factory method for creating a new Comparator for sort the compatibility score . This method is invoked in the method initializeRequestMappers and can be overridden so users can provide their own version of a Comparator .