public List < InterceptorFactory > getComponentInterceptors ( Method method ) { Map < Method , OrderedItemContainer < List < InterceptorFactory > > > map = componentInterceptors ; OrderedItemContainer < List < InterceptorFactory > > interceptors = map . get ( method ) ; if ( interceptors == null ) { return Collections . emptyList ( ) ; } List < List < InterceptorFactory > > sortedItems = interceptors . getSortedItems ( ) ; List < InterceptorFactory > ret = new ArrayList <> ( ) ; for ( List < InterceptorFactory > item : sortedItems ) { ret . addAll ( item ) ; } return ret ; }
Gets the interceptor list for a given method . This should not be called until all interceptors have been added .