You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by hi...@jakarta.apache.org on 2004/08/10 19:39:37 UTC

[Jakarta HiveMind Wiki] Updated: ServiceImplementationSwitch

   Date: 2004-08-10T10:39:37
   Editor: AchimHuegen <ah...@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