if (InstanceIdentifier.class.isAssignableFrom(returnType)) {
return DirectGetterRouteContextExtractor.create(contextGetter);
}
- final Method getValueMethod = findGetValueMethod(returnType,InstanceIdentifier.class);
+ final Method getValueMethod = findGetValueMethod(returnType, InstanceIdentifier.class);
if (getValueMethod != null) {
return GetValueRouteContextExtractor.create(contextGetter, getValueMethod);
} else {
- LOG.warn("Class {} can not be used to determine context, falling back to NULL_EXTRACTOR.",returnType);
+ LOG.warn("Class {} can not be used to determine context, falling back to NULL_EXTRACTOR.", returnType);
}
} catch (final IllegalAccessException e) {
- LOG.warn("Class {} does not conform to Binding Specification v1. Falling back to NULL_EXTRACTOR", e);
+ LOG.warn("Class {} does not conform to Binding Specification v1. Falling back to NULL_EXTRACTOR",
+ returnType, e);
}
return NULL_EXTRACTOR;
}
LOG.debug("MBean {} registered successfully", mbeanName.getCanonicalName());
} catch (InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException
| MalformedObjectNameException e) {
- LOG.error("registration failed {}", e);
+ LOG.error("registration failed", e);
}
return registered;
}
unregisterMBean(mbeanName);
unregister = true;
} catch (MBeanRegistrationException | InstanceNotFoundException | MalformedObjectNameException e) {
- LOG.debug("Failed when unregistering MBean {}", e);
+ LOG.debug("Failed when unregistering MBean", e);
}
return unregister;