hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject cvs commit: jakarta-hivemind status.xml
Date Wed, 04 May 2005 15:17:46 GMT
jcarman     2005/05/04 08:17:46

  Modified:    framework/src/test/org/apache/hivemind/service/impl
                        TestBuilderFactory.java
               .        status.xml
  Added:       framework/src/test/org/apache/hivemind/service/impl
                        ListProperty.xml ListPropertyBean.java
  Log:
  BuilderFactory attempts to autowire java.util.List.
  PR: HIVEMIND-73
  
  Revision  Changes    Path
  1.6       +9 -0      jakarta-hivemind/framework/src/test/org/apache/hivemind/service/impl/TestBuilderFactory.java
  
  Index: TestBuilderFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/test/org/apache/hivemind/service/impl/TestBuilderFactory.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestBuilderFactory.java	4 Apr 2005 15:20:38 -0000	1.5
  +++ TestBuilderFactory.java	4 May 2005 15:17:45 -0000	1.6
  @@ -18,6 +18,7 @@
   import org.apache.hivemind.ApplicationRuntimeException;
   import org.apache.hivemind.ErrorLog;
   import org.apache.hivemind.Location;
  +import org.apache.hivemind.Registry;
   import org.apache.hivemind.ServiceImplementationFactoryParameters;
   import org.apache.hivemind.internal.Module;
   import org.apache.hivemind.test.AggregateArgumentsMatcher;
  @@ -95,4 +96,12 @@
   
           verifyControls();
       }
  +    
  +    public void testListPropertyAutowire() throws Exception
  +    {
  +        final Registry reg = buildFrameworkRegistry( "ListProperty.xml" );
  +        ListPropertyBean bean = ( ListPropertyBean )reg.getService( ListPropertyBean.class
);
  +        assertNull( bean.getList() );
  +        
  +    }
   }
  \ No newline at end of file
  
  
  
  1.1                  jakarta-hivemind/framework/src/test/org/apache/hivemind/service/impl/ListProperty.xml
  
  Index: ListProperty.xml
  ===================================================================
  <?xml version="1.0"?>
  <!-- 
     Copyright 2004, 2005 The Apache Software Foundation
  
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
  -->
  
  <module id="org.apache.hivemind.service.impl.listproperty" version="1.0.0">
  
    <service-point id="ListProperty" interface="org.apache.hivemind.service.impl.ListPropertyBean">
      <invoke-factory>
        <construct class="org.apache.hivemind.service.impl.ListPropertyBean" />
      </invoke-factory>
    </service-point>
  
  </module>
  
  
  1.1                  jakarta-hivemind/framework/src/test/org/apache/hivemind/service/impl/ListPropertyBean.java
  
  Index: ListPropertyBean.java
  ===================================================================
  // Copyright 2004, 2005 The Apache Software Foundation
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //     http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  
  package org.apache.hivemind.service.impl;
  
  import java.util.List;
  
  /**
   * @author James Carman
   * @version 1.0
   */
  public class ListPropertyBean
  {
      private List list;
      
      public List getList()
      {
          return list;
      }
      public void setList(List list)
      {
          this.list = list;
      }
  }
  
  
  
  1.134     +1 -0      jakarta-hivemind/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/status.xml,v
  retrieving revision 1.133
  retrieving revision 1.134
  diff -u -r1.133 -r1.134
  --- status.xml	4 May 2005 13:19:08 -0000	1.133
  +++ status.xml	4 May 2005 15:17:45 -0000	1.134
  @@ -31,6 +31,7 @@
     </todo>
     <changes>
       <release version="1.1-beta-2" date="unreleased">
  +      <action type="fix" dev="JC" fixes-bug="HIVEMIND-73" >BuilderFactory attempts
to autowire java.util.List.</action>
         <action type="fix" dev="JC" fixes-bug="HIVEMIND-78" >Certain classloaders (AntClassLoader
for example) cause NullPointerException in impl.MessageFormatter.</action>
         <action type="add" dev="JC" fixes-bug="HIVEMIND-91" >Add getModuleMessages()
to Registry.</action>
         <action type="fix" dev="JC" fixes-bug="HIVEMIND-105" >ServiceImplementationFactoryParameters.getFirstParameter
should cope better with zero parameters.</action>
  
  
  

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