hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/rules PushAttributeRule.java
Date Mon, 09 Aug 2004 15:13:27 GMT
hlship      2004/08/09 08:13:27

  Modified:    framework/src/descriptor/META-INF hivemodule.xml
               framework/src/test/hivemind/test/services
                        StartupContribution.xml
               .        status.xml
               framework/src/java/org/apache/hivemind/schema/rules
                        PushAttributeRule.java
  Log:
  Changed hivemind.Startup configuration to take an object reference instead of a service
id.
  
  Revision  Changes    Path
  1.14      +6 -13     jakarta-hivemind/framework/src/descriptor/META-INF/hivemodule.xml
  
  Index: hivemodule.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/descriptor/META-INF/hivemodule.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- hivemodule.xml	9 Aug 2004 14:53:47 -0000	1.13
  +++ hivemodule.xml	9 Aug 2004 15:13:26 -0000	1.14
  @@ -536,23 +536,16 @@
       Startup object must implement the java.lang.Runnable interface. Order of execution
is expliclitly NOT defined.
         
       <schema>
  -      <element name="service">
  +      <element name="startup">
           
           Defines a service that implements the Runnable interface.
             
  -       <attribute name="service-id" translator="service">The name of a service implementing
the Runnable interface.</attribute>
  -        <rules>
  -          <push-attribute attribute="service-id"/>
  -          <invoke-parent method="addElement"/>
  -        </rules>
  -      </element>
  -      <element name="runnable">
  +       <attribute name="object" translator="object">
  +          Reference to the object implementing Runnable.
  +        </attribute>
           
  -        Allows an instance of a class implementing Runnable to be contributed.
  -          
  -        <attribute name="class" translator="instance">The name of a class implementing
Runnable.</attribute>
           <rules>
  -          <push-attribute attribute="class"/>
  +          <push-attribute attribute="object"/>
             <invoke-parent method="addElement"/>
           </rules>
         </element>
  @@ -602,7 +595,7 @@
     </service-point>
     
     <contribution configuration-id="Startup">
  -    <service service-id="EagerLoad"/>
  +    <startup object="service:EagerLoad"/>
     </contribution>
     
     <configuration-point id="ObjectProviders">
  
  
  
  1.2       +1 -1      jakarta-hivemind/framework/src/test/hivemind/test/services/StartupContribution.xml
  
  Index: StartupContribution.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/test/hivemind/test/services/StartupContribution.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StartupContribution.xml	3 Aug 2004 14:02:12 -0000	1.1
  +++ StartupContribution.xml	9 Aug 2004 15:13:26 -0000	1.2
  @@ -20,6 +20,6 @@
           <create-instance class="hivemind.test.services.impl.StartupRunnableFixtureImpl"/>
       </service-point>
       <contribution configuration-id="hivemind.Startup">
  -        <service service-id="StartupRunnableFixture"/>
  +        <startup object="service:StartupRunnableFixture"/>
       </contribution>
   </module>
  
  
  
  1.40      +4 -0      jakarta-hivemind/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/status.xml,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- status.xml	9 Aug 2004 14:53:47 -0000	1.39
  +++ status.xml	9 Aug 2004 15:13:26 -0000	1.40
  @@ -43,6 +43,10 @@
           Make the service-id of &lt;invoke-factory&gt; optional and default
           to hivemind.BuilderFactory.
         </action>
  +      <action type="update" dev="HLS">
  +        Change the hivemind.Startup configuration to take an object reference, not
  +        a service id.
  +      </action>
       </release>
     
       <release version="1.0-beta-2" date="Aug 1 2004">
  
  
  
  1.6       +1 -1      jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/rules/PushAttributeRule.java
  
  Index: PushAttributeRule.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/rules/PushAttributeRule.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PushAttributeRule.java	18 Jul 2004 14:43:11 -0000	1.5
  +++ PushAttributeRule.java	9 Aug 2004 15:13:27 -0000	1.6
  @@ -41,7 +41,7 @@
           Object finalValue =
               t.translate(
                   processor.getContributingModule(),
  -                null,
  +                Object.class,
                   attributeValue,
                   element.getLocation());
   
  
  
  

---------------------------------------------------------------------
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