Ability to inject a factory of ObjectName

this patch allows the JmxReporter to register metric objects with custom object names.
the current behaviour is maintained, so the change is fully backward compatible.