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,9 +102,6 @@ module.exports = function ($scope, $modal, $log, application, ApplicationJMX) {
$scope.invocation = null;
});
} else {
if (op.args.length === 0) {
$scope.invoke();
} else {
var signature = '(';
for (var i in op.args) {
if (i > 0) {
......@@ -116,6 +113,9 @@ module.exports = function ($scope, $modal, $log, application, ApplicationJMX) {
signature += ')';
$scope.invocation.opname = name + signature;
if (op.args.length === 0) {
$scope.invoke();
} else {
$modal.open({
templateUrl: 'invocationPrepareDialog.html',
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