ManagedOperation op = getManagedOperation(methodInfo, managementOp, metaData);
operations.add(op);
}
}
ManagedObjectImpl result = new ManagedObjectImpl(name, properties);
result.setAnnotations(moAnnotations);
// Set the component name to name if this is a runtime MO with a name specified
if (isRuntime && hasDefaultName == false)
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(BeanInfo.class.getName(), beanInfo);
// Propagate whether the name is defaulted
result.setTransientAttachment("ManagedObject.hasDefaultName", hasDefaultName);
return result;
}