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

Shane Bryzak Shane_Bryzak at symantec.com
Fri Feb 2 11:39:53 EST 2007


  User: sbryzak2
  Date: 07/02/02 11:39:53

  Modified:    src/main/org/jboss/seam/security  CaptchaService.java
  Log:
  JBSEAM-738
  
  Revision  Changes    Path
  1.3       +4 -6      jboss-seam/src/main/org/jboss/seam/security/CaptchaService.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CaptchaService.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/CaptchaService.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- CaptchaService.java	2 Feb 2007 14:52:14 -0000	1.2
  +++ CaptchaService.java	2 Feb 2007 16:39:53 -0000	1.3
  @@ -8,13 +8,12 @@
   import org.jboss.seam.annotations.Intercept;
   import org.jboss.seam.annotations.Name;
   import org.jboss.seam.annotations.Scope;
  -import org.jboss.seam.annotations.Unwrap;
   import org.jboss.seam.contexts.Contexts;
   
   import com.octo.captcha.service.image.DefaultManageableImageCaptchaService;
   import com.octo.captcha.service.image.ImageCaptchaService;
   
  - at Name("org.jboss.seam.security.captcha")
  + at Name("org.jboss.seam.security.captchaService")
   @Intercept(InterceptionType.NEVER)
   @Scope(ScopeType.APPLICATION)
   @Install(classDependencies="com.octo.captcha.service.image.ImageCaptchaService")
  @@ -28,18 +27,17 @@
         service = new DefaultManageableImageCaptchaService();
      }
      
  -   @Unwrap
      public ImageCaptchaService getService()
      {
         return service;
      }
      
  -   public static ImageCaptchaService instance()
  +   public static CaptchaService instance()
      {
         if ( !Contexts.isApplicationContextActive() )
         {
            throw new IllegalStateException("No active application scope");
         }
  -      return (ImageCaptchaService) Component.getInstance(CaptchaService.class);
  +      return (CaptchaService) Component.getInstance(CaptchaService.class);
      }   
   }
  
  
  



More information about the jboss-cvs-commits mailing list