public List < CommandInterceptor > getInterceptorsWhichExtend ( Class < ? extends CommandInterceptor > interceptorClass ) { ArrayList < CommandInterceptor > list = new ArrayList <> ( asyncInterceptorChain . getInterceptors ( ) . size ( ) ) ; asyncInterceptorChain . getInterceptors ( ) . forEach ( ci -> { if ( interceptorClass . isInstance ( ci ) ) { list . add ( ( CommandInterceptor ) ci ) ; } } ) ; return list ; }
Returns all interceptors which extend the given command interceptor .