You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by ah...@apache.org on 2006/04/21 23:35:52 UTC

svn commit: r396010 - /jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/MBeanNonInterfaceTestService.java

Author: ahuegen
Date: Fri Apr 21 14:35:52 2006
New Revision: 396010

URL: http://svn.apache.org/viewcvs?rev=396010&view=rev
Log:
Fix and test case for Hivemind-171: JMX Support does not work if you use the class directly as the interface

Added:
    jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/MBeanNonInterfaceTestService.java

Added: jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/MBeanNonInterfaceTestService.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/MBeanNonInterfaceTestService.java?rev=396010&view=auto
==============================================================================
--- jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/MBeanNonInterfaceTestService.java (added)
+++ jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/MBeanNonInterfaceTestService.java Fri Apr 21 14:35:52 2006
@@ -0,0 +1,39 @@
+// Copyright 2005 The Apache Software Foundation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package org.apache.hivemind.management;
+
+/**
+ * Used for testing if non interface classes can be registered as mben.
+ * 
+ * @author Achim Huegen
+ * @since 1.2
+ */
+public class MBeanNonInterfaceTestService
+{
+    private int value;
+
+    public void run()
+    {
+    }
+
+	public int getValue() {
+		return value;
+	}
+
+	public void setValue(int value) {
+		this.value = value;
+	}
+
+}
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org