EVALUATION
Here is the for loop from RequiredModelMBean.getAttributes()
=> we could make the distinction between AttributeNotFoundException and plain
Exception, or simply print a FINE/FINER trace in all cases instead of a WARNING.
-----------------------------------------------------------------------------------
responseList = new AttributeList();
for (int i = 0; i < attrNames.length; i++) {
try {
responseList.add(new Attribute(attrNames[i],
getAttribute(attrNames[i])));
} catch (Exception e) {
// eat exceptions because interface doesn't have an
// exception on it
if (MODELMBEAN_LOGGER.isLoggable(Level.WARNING)) {
MODELMBEAN_LOGGER.logp(Level.WARNING,
RequiredModelMBean.class.getName(),
"getAttributes(String[])",
"Failed to get \"" + attrNames[i] + "\": ", e);
}
}
}
---------------------------------------------------------------------------------
|