public static Filter getFilterForLocation ( String location , String context ) throws IllegalArgumentException { String filter = makeLocationFilterString ( location , context ) ; try { return FrameworkUtil . createFilter ( filter ) ; } catch ( InvalidSyntaxException e ) { throw new IllegalArgumentException ( "location is invalid: " + location , e ) ; } }
returns a filter that matches services with the given location in both the given context and the root - context