hlship      2003/09/25 14:38:40

  Modified:    hivemind/framework project.xml
               hivemind/framework/xdocs BuilderFactory.xml
               hivemind/framework/src/descriptor/META-INF hivemodule.xml
               hivemind/library project.properties
  Log:
  Add <set-resource> to hivemind.BuilderFactory.
  
  Revision  Changes    Path
  1.7       +3 -20     jakarta-commons-sandbox/hivemind/framework/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/framework/project.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- project.xml       20 Sep 2003 12:48:19 -0000      1.6
  +++ project.xml       25 Sep 2003 21:38:40 -0000      1.7
  @@ -18,7 +18,7 @@
     <shortDescription>HiveMind framework sub-project</shortDescription>
   
     <description>
  -  The HiveMind framework, including core HiveMind services.
  +  The HiveMind framework, including core HiveMind services and configurations.
     </description>
   
     <repository>
  @@ -51,7 +51,6 @@
        <version>1.6.1</version>
        <url>http://jakarta.apache.org/jakarta-commons/beanutils.html</url>     
       </dependency>
  -
        
       <dependency>
        <groupId>jboss</groupId>
  @@ -59,18 +58,6 @@
        <version>2.6</version>
       </dependency>   
   
  -    <!-- Actually, a dependency on J2EE; perhaps Geronimo will
  -        be able to provide this in the future. -->
  -        
  -    <!-- Note: maybe remove after moving EJBFactory & etc. over
  -        to library subproject? -->
  -    
  -    <dependency>
  -     <id>jboss</id>
  -     <artifactId>jboss-j2ee</artifactId>
  -     <version>3.2.1</version>
  -    </dependency>
  -
       <dependency>
         <id>xml-apis</id>
         <version>1.0.b2</version>
  @@ -93,18 +80,14 @@
         <version>2.2.1</version>
         <url>http://xml.apache.org/xerces/</url>
       </dependency>
  -           
  -    <!-- Inherited dependencies -->
   
  -             <!-- Needed by commons-beanutils -->
                
       <dependency>
        <id>commons-collections</id>
        <version>2.1</version>
        <url>http://jakarta.apache.org/jakarta-commons/collections.html</url>
       </dependency>
  -       
  -   
  +    
       <!-- Needed by test suite classes, but not the framework itself.  -->
       
       <dependency>
  
  
  
  1.2       +27 -4     
jakarta-commons-sandbox/hivemind/framework/xdocs/BuilderFactory.xml
  
  Index: BuilderFactory.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/hivemind/framework/xdocs/BuilderFactory.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BuilderFactory.xml        24 Sep 2003 16:07:52 -0000      1.1
  +++ BuilderFactory.xml        25 Sep 2003 21:38:40 -0000      1.2
  @@ -30,12 +30,13 @@
       messages-property=". . ."
       service-id-property=". . .">
      
  -    <set property=". . ." value=". . ."/>
  +    <set property=". . ." value=". . ."/>   
  +    <set-boolean property=". . ." value=". . ."/> 
  +    <set-configuration property=". . ." configuration-id=". . ."/>    
       <set-int property=". . ." value=". . ."/>
       <set-long property=". . ." value=". . ."/>
  -    <set-boolean property=". . ." value=". . ."/>
  +    <set-resource property=". . ." path=". . ."/>
       <set-service property=". . ." service-id=". . ."/>
  -    <set-configuration property=". . ." configuration-id=". . ."/>
       
       
     </construct>
  @@ -171,6 +172,28 @@
        </tr>
   </table>             
   
  +</section>
  +
  +<section name="set-resource">
  +
  +<table>
  +     <tr>
  +                     <th>Attribute</th> <th>Description</th>
  +     </tr>   
  +     <tr>
  +             <td>property</td>        <td>The name of the property to set.</td>
  +     </tr>
  +     <tr>
  +             <td>path</td>                   
  +             <td>
  +             The path to a 
  +             <a href="&apiroot;/Resource.html">Resource</a>, relative
  +             to the contributing module's deployment descriptor.
  +             If available, a localized version of the Resource will
  +             be selected.
  +             </td>
  +     </tr>
  +</table>             
   </section>
   
   <section name="set-service">
  
  
  
  1.3       +24 -2     
jakarta-commons-sandbox/hivemind/framework/src/descriptor/META-INF/hivemodule.xml
  
  Index: hivemodule.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/hivemind/framework/src/descriptor/META-INF/hivemodule.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- hivemodule.xml    24 Sep 2003 16:07:52 -0000      1.2
  +++ hivemodule.xml    25 Sep 2003 21:38:40 -0000      1.3
  @@ -310,7 +310,29 @@
                                        <read-attribute property="propertyName" 
attribute="property"/>
                                        <read-attribute property="value" 
attribute="configuration-id" translator="configuration"/>
                                        <invoke-parent method="addProperty"/>          
                                 
  -                                     </rules>        
  +                                     </rules> 
  +                                     
  +                             </element>      
  +                                     
  +                     <element name="set-resource">
  +                             <description>Configures a property of the service 
instance to a
  +                                     resource.</description>
  +             
  +                     
  +                                     <attribute name="property" required="true">
  +                                             <description>The name of the property 
of the service instance to configure.</description>       
  +                                     </attribute>
  +                     
  +                             <attribute name="path" required="true">
  +                                     <description>The path, relative to the 
module's deployment descriptor, of the resource.</description>   
  +                             </attribute>
  +                     
  +                                     <rules>
  +                                     <create-object 
class="org.apache.commons.hivemind.service.impl.SetPropertyValue"/>
  +                                     <read-attribute property="propertyName" 
attribute="property"/>
  +                                     <read-attribute property="value" 
attribute="path" translator="resource"/>
  +                                     <invoke-parent method="addProperty"/>          
                                 
  +                                     </rules>                                       
 
                                
                        </element>
                  </element>
  
  
  
  1.3       +6 -2      jakarta-commons-sandbox/hivemind/library/project.properties
  
  Index: project.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/library/project.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- project.properties        20 Sep 2003 12:48:19 -0000      1.2
  +++ project.properties        25 Sep 2003 21:38:40 -0000      1.3
  @@ -2,4 +2,8 @@
   
   
   # This seems to be necessary to get the full code coverage.
  -maven.jar.index=true
  \ No newline at end of file
  +maven.jar.index=true
  +
  +# This seems to be necessary to ensure that Clover collects
  +# all the code coverage information.
  +maven.junit.fork=yes
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to