Fix FELIX-2634 Rename the @Publisher annotation into @Publishes annotation to avoid collision
The @Publisher annotation is deprecated from now.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1005120 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/handler/eventadmin/metadata.xml b/ipojo/handler/eventadmin/metadata.xml
index 945451e..69b340b 100644
--- a/ipojo/handler/eventadmin/metadata.xml
+++ b/ipojo/handler/eventadmin/metadata.xml
@@ -6,9 +6,9 @@
to you 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
@@ -25,10 +25,17 @@
<property field="m_topics" name="event.topics"/>
</provides>
</handler>
-
+
+ <!-- This handler is duplicated to support the 'Publishes' annotation -->
<handler classname="org.apache.felix.ipojo.handlers.event.publisher.EventAdminPublisherHandler"
name="publisher"
namespace="org.apache.felix.ipojo.handlers.event">
<requires field="m_ea"/>
</handler>
+
+ <handler classname="org.apache.felix.ipojo.handlers.event.publisher.EventAdminPublisherHandler"
+ name="publishes"
+ namespace="org.apache.felix.ipojo.handlers.event">
+ <requires field="m_ea"/>
+ </handler>
</ipojo>
\ No newline at end of file