@ SuppressWarnings ( "deprecation" ) public static Handler getHandler ( List < Handler > handlerList , Handler actionHandler ) { Handler result = actionHandler ; for ( int i = handlerList . size ( ) - 1 ; i >= 0 ; i -- ) { Handler temp = handlerList . get ( i ) ; temp . next = result ; temp . nextHandler = result ; result = temp ; } return result ; }
Build handler chain