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

Gavin King gavin.king at jboss.com
Tue Oct 10 15:37:38 EDT 2006


  User: gavin   
  Date: 06/10/10 15:37:38

  Modified:    src/main/org/jboss/seam/theme  ThemeSelector.java
  Log:
  removed @Mutable, use Mutable interface instead
  
  Revision  Changes    Path
  1.4       +5 -3      jboss-seam/src/main/org/jboss/seam/theme/ThemeSelector.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ThemeSelector.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/theme/ThemeSelector.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- ThemeSelector.java	22 Jun 2006 09:46:01 -0000	1.3
  +++ ThemeSelector.java	10 Oct 2006 19:37:38 -0000	1.4
  @@ -21,10 +21,10 @@
   import org.jboss.seam.Seam;
   import org.jboss.seam.annotations.Create;
   import org.jboss.seam.annotations.Intercept;
  -import org.jboss.seam.annotations.Mutable;
   import org.jboss.seam.annotations.Name;
   import org.jboss.seam.annotations.Scope;
   import org.jboss.seam.contexts.Contexts;
  +import org.jboss.seam.core.AbstractMutable;
   import org.jboss.seam.core.Locale;
   
   /**
  @@ -35,8 +35,7 @@
   @Scope(ScopeType.SESSION)
   @Name("themeSelector")
   @Intercept(NEVER)
  - at Mutable
  -public class ThemeSelector implements Serializable
  +public class ThemeSelector extends AbstractMutable implements Serializable
   {
      private static final Log log = LogFactory.getLog(ThemeSelector.class);
      
  @@ -99,11 +98,13 @@
   
      public void setTheme(String themeName)
      {
  +      setDirty(this.theme, themeName);
         this.theme = themeName;
      }
   
      public void setAvailableThemes(String[] themeNames)
      {
  +      setDirty(this.availableThemes, themeNames);
         this.availableThemes = themeNames;
      }
      
  @@ -147,6 +148,7 @@
   
      public void setCookieEnabled(boolean cookieEnabled)
      {
  +      setDirty(this.cookieEnabled, cookieEnabled);
         this.cookieEnabled = cookieEnabled;
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list