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

Gavin King gavin.king at jboss.com
Thu Nov 16 12:25:03 EST 2006


  User: gavin   
  Date: 06/11/16 12:25:03

  Modified:    src/main/org/jboss/seam  Component.java
  Log:
  put everything in its proper namespace JBSEAM-259
  
  Revision  Changes    Path
  1.210     +6 -2      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.209
  retrieving revision 1.210
  diff -u -b -r1.209 -r1.210
  --- Component.java	15 Nov 2006 21:55:00 -0000	1.209
  +++ Component.java	16 Nov 2006 17:25:03 -0000	1.210
  @@ -120,7 +120,7 @@
    *
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
    * @author Gavin King
  - * @version $Revision: 1.209 $
  + * @version $Revision: 1.210 $
    */
   @Scope(ScopeType.APPLICATION)
   @SuppressWarnings("deprecation")
  @@ -1647,7 +1647,11 @@
         Object value = Contexts.lookupInStatefulContexts(name); //see if a value was outjected by the factory method
         if (value==null) //usually a factory method returning a value
         {
  -         getOutScope(scope, component).getContext().set(name, result);
  +         ScopeType outScope = getOutScope(scope, component);
  +         if ( outScope!=STATELESS )
  +         {
  +            outScope.getContext().set(name, result);
  +         }
            return result;
         }
         else //usually a factory method with a void return type
  
  
  



More information about the jboss-cvs-commits mailing list