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

Gavin King gavin.king at jboss.com
Wed Feb 14 00:46:29 EST 2007


  User: gavin   
  Date: 07/02/14 00:46:29

  Modified:    src/main/org/jboss/seam/framework  Controller.java
  Log:
  introduced meta-model for non-component objects
  
  Revision  Changes    Path
  1.6       +2 -2      jboss-seam/src/main/org/jboss/seam/framework/Controller.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Controller.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/framework/Controller.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- Controller.java	2 Feb 2007 07:24:20 -0000	1.5
  +++ Controller.java	14 Feb 2007 05:46:29 -0000	1.6
  @@ -9,6 +9,7 @@
   
   import org.hibernate.validator.ClassValidator;
   import org.jboss.seam.Component;
  +import org.jboss.seam.Model;
   import org.jboss.seam.Seam;
   import org.jboss.seam.annotations.Logger;
   import org.jboss.seam.contexts.Context;
  @@ -22,7 +23,6 @@
   import org.jboss.seam.core.Redirect;
   import org.jboss.seam.core.Renderer;
   import org.jboss.seam.core.Validation;
  -import org.jboss.seam.core.Validators;
   import org.jboss.seam.log.Log;
   import org.jboss.seam.security.Identity;
   
  @@ -174,7 +174,7 @@
   
      protected <T> ClassValidator<T> getValidator(Class<T> modelClass)
      {
  -      return Validators.instance().getValidator(modelClass);
  +      return Model.forClass(modelClass).getValidator();
      } 
   
      protected void debug(Object object, Object... params)
  
  
  



More information about the jboss-cvs-commits mailing list