hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hivemind-...@jakarta.apache.org
Subject [Jakarta HiveMind Wiki] Updated: ServiceImplementationSwitch
Date Tue, 10 Aug 2004 17:39:37 GMT
   Date: 2004-08-10T10:39:37
   Editor: AchimHuegen <ahuegen@gmx-topmail.de>
   Wiki: Jakarta HiveMind Wiki
   Page: ServiceImplementationSwitch
   URL: http://wiki.apache.org/jakarta-hivemind/ServiceImplementationSwitch

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -50,6 +50,20 @@
 </contribution>
 }}}
 
+== Overriding services ==
+It's easy compared to http://jakarta.apache.org/hivemind/override.html. Assuming that a service
point is already defined and a default implementation is provided you could add a new implementation
and make it the default this way:
+{{{
+<implementation service-id="foo.service" >
+    <create-instance name="implementation1" class="foo.serviceImpl1" />
+</implementation>
+
+<contribution configuration-id="hivemind.ServiceImplementationSwitch" >
+    <switch service-id="foo.service" implementation="implementation1" />
+</contribution>
+}}}
+
+
+
 == Extensions ==
 
 === Wildcards ===

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


Mime
View raw message