private static void processFilters ( List < SpanFilter > filters , String pattern , String childNames , Class < ? extends SpanFilter > impl ) { final String methodName = "processFilters" ; try { SpanFilterType type = SpanFilterType . INCOMING ; boolean ignoreCase = false ; boolean regex = true ; SpanFilter filter = ( SpanFilter ) Class . forName ( impl . getName ( ) ) . getConstructor ( String . class , SpanFilterType . class , boolean . class , boolean . class ) . newInstance ( pattern , type , ignoreCase , regex ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName , "filter " + filter ) ; } filters . add ( filter ) ; } catch ( ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | SecurityException | IllegalArgumentException | InvocationTargetException e ) { throw new IllegalStateException ( e ) ; } }
Check the configuration for filters of a particular type .