Change order of properties in endpoint mbean objectNames to make display in jconsole nicer

This commit is contained in:
Christian Dupuis 2014-01-31 11:50:32 +01:00
parent c65dc9063c
commit 6519ee0171

View File

@ -170,11 +170,11 @@ public class EndpointMBeanExporter extends MBeanExporter implements SmartLifecyc
StringBuilder builder = new StringBuilder();
builder.append(this.domain);
builder.append(":type=Endpoint");
builder.append(",name=" + beanKey);
if (parentContextContainsSameBean(this.applicationContext, beanKey)) {
builder.append(",context="
+ ObjectUtils.getIdentityHexString(this.applicationContext));
}
builder.append(",name=" + beanKey);
if (this.ensureUniqueRuntimeObjectNames) {
builder.append(",identity="
+ ObjectUtils.getIdentityHexString(((EndpointMBean) bean)