You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by kn...@apache.org on 2004/11/10 17:26:28 UTC

cvs commit: jakarta-hivemind/src/documentation/content/xdocs bootstrap.xml

knut        2004/11/10 08:26:28

  Modified:    src/documentation/content/xdocs bootstrap.xml
  Log:
  fixed some typos in example code
  
  Revision  Changes    Path
  1.11      +8 -6      jakarta-hivemind/src/documentation/content/xdocs/bootstrap.xml
  
  Index: bootstrap.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/src/documentation/content/xdocs/bootstrap.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- bootstrap.xml	21 Oct 2004 12:35:56 -0000	1.10
  +++ bootstrap.xml	10 Nov 2004 16:26:28 -0000	1.11
  @@ -60,7 +60,6 @@
   
   public class AdderImpl implements Adder
   {
  -
     public int add(int arg0, int arg1)
     {
       return arg0 + arg1;
  @@ -77,7 +76,6 @@
       <source><![CDATA[
   package hivemind.examples;
   
  -
   public interface Calculator extends Adder, Subtracter, Multiplier, Divider
   {
   
  @@ -167,8 +165,8 @@
       <interceptor service-id="hivemind.LoggingInterceptor"/>
     </service-point>
     
  -  <service-point id="Subtracter" interface="hivemind.examples.impl.SubtracterImpl">
  -    <create-instance class="hivemind.examples.impl.AdderImpl"/>
  +  <service-point id="Subtracter" interface="hivemind.examples.Subtracter">
  +    <create-instance class="hivemind.examples.impl.SubtracterImpl"/>
       <interceptor service-id="hivemind.LoggingInterceptor"/>
     </service-point>
     
  @@ -177,6 +175,11 @@
       <interceptor service-id="hivemind.LoggingInterceptor"/>
     </service-point>
     
  +  <service-point id="Divider" interface="hivemind.examples.Divider">
  +    <create-instance class="hivemind.examples.impl.DividerImpl"/>
  +    <interceptor service-id="hivemind.LoggingInterceptor"/>
  +  </service-point>
  +  
     <service-point id="Calculator" interface="hivemind.examples.Calculator">
       <invoke-factory>
         <!-- Autowires service properties based on interface! -->
  @@ -197,7 +200,7 @@
       <section>
         <title>Building the Registry</title>
         <p>Before your code can access any services (or configuration points), it
  -        must construct the &api.Registry;.  The Registry is the applications gateway into the services
  +        must construct the &api.Registry;.  The Registry is the application's gateway into the services
           and configurations managed by HiveMind.</p>
         <source><![CDATA[
   package hivemind.examples;
  @@ -207,7 +210,6 @@
   
   public class Main
   {
  -
     public static void main(String[] args)
     {
       int arg0 = Integer.parseInt(args[0]);
  
  
  

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