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

Gavin King gavin.king at jboss.com
Sun Oct 8 14:57:45 EDT 2006


  User: gavin   
  Date: 06/10/08 14:57:45

  Modified:    src/main/org/jboss/seam  Component.java
  Log:
  refactored fwk *again*, and added Hibernate homes
  
  Revision  Changes    Path
  1.177     +6 -4      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.176
  retrieving revision 1.177
  diff -u -b -r1.176 -r1.177
  --- Component.java	8 Oct 2006 14:01:53 -0000	1.176
  +++ Component.java	8 Oct 2006 18:57:45 -0000	1.177
  @@ -107,7 +107,7 @@
    *
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
    * @author Gavin King
  - * @version $Revision: 1.176 $
  + * @version $Revision: 1.177 $
    */
   @Scope(ScopeType.APPLICATION)
   public class Component
  @@ -318,10 +318,10 @@
            {
               if ( log.isDebugEnabled() ) log.debug( key + "=" + propertyValue );
   
  -            if ( type==ENTITY_BEAN )
  +            /*if ( type==ENTITY_BEAN )
               {
                  throw new IllegalArgumentException("can not configure entity beans: " + name);
  -            }
  +            }*/
   
               String propertyName = key.substring( name.length()+1, key.length() );
               Method setterMethod = Reflections.getSetterMethod(beanClass, propertyName);
  @@ -901,7 +901,9 @@
   
      protected Object instantiateEntityBean() throws Exception
      {
  -      return beanClass.newInstance();
  +      Object bean = beanClass.newInstance();
  +      initialize(bean);
  +      return bean;
      }
   
      protected Object instantiateJavaBean() throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list