[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...

Gavin King gavin.king at jboss.com
Thu Oct 5 15:43:59 EDT 2006


  User: gavin   
  Date: 06/10/05 15:43:59

  Modified:    src/main/org/jboss/seam  Component.java
  Log:
  association handling in framework
  more robust configuration
  
  Revision  Changes    Path
  1.174     +4 -11     jboss-seam/src/main/org/jboss/seam/Component.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Component.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
  retrieving revision 1.173
  retrieving revision 1.174
  diff -u -b -r1.173 -r1.174
  --- Component.java	4 Oct 2006 23:42:52 -0000	1.173
  +++ Component.java	5 Oct 2006 19:43:59 -0000	1.174
  @@ -107,7 +107,7 @@
    *
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
    * @author Gavin King
  - * @version $Revision: 1.173 $
  + * @version $Revision: 1.174 $
    */
   @Scope(ScopeType.APPLICATION)
   public class Component
  @@ -334,17 +334,10 @@
               }
               else
               {
  -               try
  -               {
  -                  Field field = beanClass.getField(propertyName);
  +               Field field = Reflections.getField(beanClass, propertyName);
                     if ( !field.isAccessible() ) field.setAccessible(true);
                     initializerFields.put( field, getInitialValue(propertyValue, field.getType(), field.getGenericType()) );
                  }
  -               catch (NoSuchFieldException nsfe)
  -               {
  -                  throw new IllegalArgumentException("no field or setter method for configuration setting: " + key, nsfe);
  -               }
  -            }
           }
   
         }
  
  
  



More information about the jboss-cvs-commits mailing list