Commit 443e1067 by Andrew Austin Committed by Johannes Stelzer

Altered JSON invocation of JMX methods to support the following change…

Altered JSON invocation of JMX methods to support the following change implemented in Jolokia Release 0.91 (http://www.jolokia.org/changes-report.html): Fixed issue with overloaded methods where one variant takes no arguments. This no-arg variant can be specified with the signature "()" after the operation name.
parent 6d76fa30
...@@ -102,20 +102,20 @@ module.exports = function ($scope, $modal, $log, application, ApplicationJMX) { ...@@ -102,20 +102,20 @@ module.exports = function ($scope, $modal, $log, application, ApplicationJMX) {
$scope.invocation = null; $scope.invocation = null;
}); });
} else { } else {
var signature = '(';
for (var i in op.args) {
if (i > 0) {
signature += ',';
}
signature += op.args[i].type;
$scope.invocation.args[i] = null;
}
signature += ')';
$scope.invocation.opname = name + signature;
if (op.args.length === 0) { if (op.args.length === 0) {
$scope.invoke(); $scope.invoke();
} else { } else {
var signature = '(';
for (var i in op.args) {
if (i > 0) {
signature += ',';
}
signature += op.args[i].type;
$scope.invocation.args[i] = null;
}
signature += ')';
$scope.invocation.opname = name + signature;
$modal.open({ $modal.open({
templateUrl: 'invocationPrepareDialog.html', templateUrl: 'invocationPrepareDialog.html',
scope: $scope scope: $scope
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment