|
|
|
@ -1097,6 +1097,19 @@ public class MBeanExporter extends MBeanRegistrationSupport implements MBeanExpo
@@ -1097,6 +1097,19 @@ public class MBeanExporter extends MBeanRegistrationSupport implements MBeanExpo
|
|
|
|
|
this.objectName = objectName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Object getTarget() { |
|
|
|
|
try { |
|
|
|
|
return super.getTarget(); |
|
|
|
|
} |
|
|
|
|
catch (RuntimeException ex) { |
|
|
|
|
if (logger.isWarnEnabled()) { |
|
|
|
|
logger.warn("Failed to retrieve target for JMX-exposed bean [" + this.objectName + "]: " + ex); |
|
|
|
|
} |
|
|
|
|
throw ex; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected void postProcessTargetObject(Object targetObject) { |
|
|
|
|
injectNotificationPublisherIfNecessary(targetObject, this.modelMBean, this.objectName); |
|
|
|
|