* @return operation data model
*/
public static OperationDataModel getOperations(ManagedBean mbean)
{
JMXServerRegistry serverRegistry = (JMXServerRegistry)ApplicationRegistry.getServerRegistry(mbean);
OperationDataModel dataModel = serverRegistry.getOperationModel(mbean);
if (dataModel == null)
{
// Create operation model and set it in server registry for this mbean
MBeanOperationInfo[] operationsInfo = serverRegistry.getMBeanInfo(mbean).getOperations();
dataModel = new OperationDataModel();
for (int i = 0; i < operationsInfo.length; i++)
{
dataModel.addOperation(operationsInfo[i]);
}
serverRegistry.setOperationModel(mbean, dataModel);
}
return dataModel;