Update the handler namespace to support annotations.
Now it uses "org.apache.felix.ipojo.handlers.jmx"
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@685254 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/handler/jmx/metadata.xml b/ipojo/handler/jmx/metadata.xml
index c20ebbb..ed20e9b 100644
--- a/ipojo/handler/jmx/metadata.xml
+++ b/ipojo/handler/jmx/metadata.xml
@@ -17,6 +17,6 @@
under the License.
-->
<ipojo>
-<handler classname="org.apache.felix.ipojo.handlers.jmx.MBeanHandler" name="config" namespace="org.apache.felix.ipojo.handlers.jmx.MBeanHandler">
+<handler classname="org.apache.felix.ipojo.handlers.jmx.MBeanHandler" name="config" namespace="org.apache.felix.ipojo.handlers.jmx">
</handler>
</ipojo>
\ No newline at end of file
diff --git a/ipojo/handler/jmx/obr.xml b/ipojo/handler/jmx/obr.xml
index fd462e1..df0b21c 100644
--- a/ipojo/handler/jmx/obr.xml
+++ b/ipojo/handler/jmx/obr.xml
@@ -19,7 +19,7 @@
<obr>
<capability name="ipojo.handler">
<p n="name" v="config"/>
- <p n="namespace" v="org.apache.felix.ipojo.handlers.jmx.MBeanHandler"/>
+ <p n="namespace" v="org.apache.felix.ipojo.handlers.jmx"/>
<p n="type" v="primitive"/>
</capability>
</obr>
\ No newline at end of file
diff --git a/ipojo/handler/jmx/src/main/java/org/apache/felix/ipojo/handlers/jmx/MBeanHandler.java b/ipojo/handler/jmx/src/main/java/org/apache/felix/ipojo/handlers/jmx/MBeanHandler.java
index 70d7361..aef634d 100644
--- a/ipojo/handler/jmx/src/main/java/org/apache/felix/ipojo/handlers/jmx/MBeanHandler.java
+++ b/ipojo/handler/jmx/src/main/java/org/apache/felix/ipojo/handlers/jmx/MBeanHandler.java
@@ -146,7 +146,7 @@
/**
* String : constant which store the name of the class.
*/
- private String m_namespace = this.getClass().getName();
+ private String m_namespace = "org.apache.felix.ipojo.handlers.jmx";
/**
* Flag used to say if we use MOSGi framework.
*/
@@ -168,6 +168,7 @@
* null.
*/
private String m_objNameWODomainElt;
+
/**
* object name domain specified in handler configuration. It can be null.
*/