use of javax.management.InvalidApplicationException in project felix by apache.
the class MX4JMBeanServer method filterMBeansByQuery.
/**
* Filters the given set of ObjectNames following the given QueryExp.
* Returns a set of ObjectNames that match the given QueryExp.
*/
private Set filterMBeansByQuery(Set scope, QueryExp filter) {
if (filter == null)
return scope;
Set set = new HashSet();
for (Iterator i = scope.iterator(); i.hasNext(); ) {
ObjectName name = (ObjectName) i.next();
filter.setMBeanServer(this);
try {
if (filter.apply(name))
set.add(name);
} catch (BadStringOperationException ignored) {
} catch (BadBinaryOpValueExpException ignored) {
} catch (BadAttributeValueExpException x) {
} catch (InvalidApplicationException x) {
} catch (SecurityException x) {
} catch (Exception x) {
// The 1.2 spec says Exceptions must not be propagated
}
}
return set;
}
Aggregations