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

Gavin King gavin.king at jboss.com
Mon Jul 24 19:54:30 EDT 2006


  User: gavin   
  Date: 06/07/24 19:54:30

  Modified:    src/main/org/jboss/seam/core   ManagedEntity.java
                        ManagedHibernateEntity.java
  Log:
  ooops, bad class.forname
  support configgable properties of type ValueBinding
  
  Revision  Changes    Path
  1.6       +3 -2      jboss-seam/src/main/org/jboss/seam/core/ManagedEntity.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ManagedEntity.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/ManagedEntity.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- ManagedEntity.java	24 Jul 2006 21:04:49 -0000	1.5
  +++ ManagedEntity.java	24 Jul 2006 23:54:30 -0000	1.6
  @@ -8,6 +8,7 @@
   
   import org.jboss.seam.annotations.Intercept;
   import org.jboss.seam.annotations.Unwrap;
  +import org.jboss.seam.util.Reflections;
   
   /**
    * Manager component for an EJB 3.0 entity instance. Allows
  @@ -62,7 +63,7 @@
      @Unwrap
      public Object getInstance() throws Exception
      {
  -      Class<?> clazz = Class.forName(entityClass);
  +      Class<?> clazz = Reflections.classForName(entityClass);
         if (id==null)
         {
            if (newInstance==null)
  @@ -87,7 +88,7 @@
            if (idConverterId==null)
            {
               //TODO: guess the id class using @Id
  -            idConverter = facesContext.getApplication().createConverter( Class.forName(idClass) );
  +            idConverter = facesContext.getApplication().createConverter( Reflections.classForName(idClass) );
            }
            else
            {
  
  
  
  1.7       +3 -2      jboss-seam/src/main/org/jboss/seam/core/ManagedHibernateEntity.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ManagedHibernateEntity.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/ManagedHibernateEntity.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- ManagedHibernateEntity.java	24 Jul 2006 21:04:49 -0000	1.6
  +++ ManagedHibernateEntity.java	24 Jul 2006 23:54:30 -0000	1.7
  @@ -8,6 +8,7 @@
   import org.hibernate.Session;
   import org.jboss.seam.annotations.Transactional;
   import org.jboss.seam.annotations.Unwrap;
  +import org.jboss.seam.util.Reflections;
   
   /**
    * Manager component for a Hibernate entity instance. Allows
  @@ -61,7 +62,7 @@
      @Unwrap @Transactional
      public Object getInstance() throws Exception
      {
  -      Class clazz = Class.forName(entityClass);
  +      Class clazz = Reflections.classForName(entityClass);
         if (id==null)
         {
            if (newInstance==null)
  @@ -86,7 +87,7 @@
            if (idConverterId==null)
            {
               //TODO: guess the id class using @Id
  -            idConverter = facesContext.getApplication().createConverter( Class.forName(idClass) );
  +            idConverter = facesContext.getApplication().createConverter( Reflections.classForName(idClass) );
            }
            else
            {
  
  
  



More information about the jboss-cvs-commits mailing list