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

Gavin King gavin.king at jboss.com
Wed Jun 20 01:06:40 EDT 2007


  User: gavin   
  Date: 07/06/20 01:06:40

  Modified:    src/main/org/jboss/seam/contexts    BasicContext.java
                        Contexts.java SessionContext.java
  Log:
  get rid of context managers
  
  Revision  Changes    Path
  1.4       +7 -1      jboss-seam/src/main/org/jboss/seam/contexts/BasicContext.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BasicContext.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/contexts/BasicContext.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- BasicContext.java	11 Jun 2007 16:59:28 -0000	1.3
  +++ BasicContext.java	20 Jun 2007 05:06:40 -0000	1.4
  @@ -1,4 +1,4 @@
  -//$Id: BasicContext.java,v 1.3 2007/06/11 16:59:28 gavin Exp $
  +//$Id: BasicContext.java,v 1.4 2007/06/20 05:06:40 gavin Exp $
   package org.jboss.seam.contexts;
   
   import java.util.HashMap;
  @@ -80,4 +80,10 @@
   
      public void flush() {}
   
  +   @Override
  +   public String toString()
  +   {
  +      return "BasicContext(" + scope + ")";
  +   }
  +
   }
  
  
  
  1.51      +12 -1     jboss-seam/src/main/org/jboss/seam/contexts/Contexts.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Contexts.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/contexts/Contexts.java,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -b -r1.50 -r1.51
  --- Contexts.java	18 Jun 2007 21:32:04 -0000	1.50
  +++ Contexts.java	20 Jun 2007 05:06:40 -0000	1.51
  @@ -6,9 +6,17 @@
    */
   package org.jboss.seam.contexts;
   
  +import static org.jboss.seam.InterceptionType.NEVER;
  +import static org.jboss.seam.annotations.Install.BUILT_IN;
  +
   import org.jboss.seam.log.LogProvider;
   import org.jboss.seam.log.Logging;
   import org.jboss.seam.Component;
  +import org.jboss.seam.ScopeType;
  +import org.jboss.seam.annotations.Install;
  +import org.jboss.seam.annotations.Intercept;
  +import org.jboss.seam.annotations.Name;
  +import org.jboss.seam.annotations.Scope;
   import org.jboss.seam.core.Events;
   
   /**
  @@ -16,8 +24,11 @@
    * 
    * @author Gavin King
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
  - * @version $Revision: 1.50 $
    */
  + at Name("org.jboss.seam.contexts.contexts")
  + at Intercept(NEVER)
  + at Install(precedence=BUILT_IN)
  + at Scope(ScopeType.APPLICATION)
   public class Contexts 
   {
   
  
  
  
  1.3       +6 -0      jboss-seam/src/main/org/jboss/seam/contexts/SessionContext.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SessionContext.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/contexts/SessionContext.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- SessionContext.java	10 Jun 2007 19:39:15 -0000	1.2
  +++ SessionContext.java	20 Jun 2007 05:06:40 -0000	1.3
  @@ -53,4 +53,10 @@
         }      
      }
     
  +   @Override
  +   public String toString()
  +   {
  +      return "SessionContext";
  +   }
  +
   }
  
  
  



More information about the jboss-cvs-commits mailing list