log.debug("Failed to create ManagedOperation for: "+methodInfo.getName(), e);
}
}
}
ManagedObjectImpl result = new ManagedObjectImpl(mbean.getCanonicalName(), properties);
// TODO
Map<String, Annotation> empty = Collections.emptyMap();
result.setAnnotations(empty);
// Set the component name to name if this is a runtime MO with a name specified
result.setComponentName(name);
if (nameType != null)
result.setNameType(nameType);
if (attachmentName != null)
result.setAttachmentName(attachmentName);
if (operations.size() > 0 )
result.setOperations(operations);
for (ManagedProperty property : properties)
property.setManagedObject(result);
result.setTransientAttachment(MBeanInfo.class.getName(), info);
// Marker for associating the correct dispatcher
result.setTransientAttachment(MBeanRuntimeComponentDispatcher.class.getName(), true);
return result;
}