Date: 2004-08-10T10:39:37
   Editor: AchimHuegen <[EMAIL PROTECTED]>
   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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to