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

Shane Bryzak sbryzak at redhat.com
Wed Sep 19 00:29:02 EDT 2007


  User: sbryzak2
  Date: 07/09/19 00:29:02

  Modified:    src/main/org/jboss/seam/captcha  CaptchaImage.java
  Log:
  JBSEAM-865
  
  Revision  Changes    Path
  1.13      +15 -2     jboss-seam/src/main/org/jboss/seam/captcha/CaptchaImage.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CaptchaImage.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/captcha/CaptchaImage.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- CaptchaImage.java	22 Jun 2007 15:46:53 -0000	1.12
  +++ CaptchaImage.java	19 Sep 2007 04:29:02 -0000	1.13
  @@ -19,6 +19,7 @@
   import org.jboss.seam.annotations.intercept.BypassInterceptors;
   import org.jboss.seam.contexts.Contexts;
   import org.jboss.seam.contexts.ServletLifecycle;
  +import org.jboss.seam.core.Expressions;
   import org.jboss.seam.web.AbstractResource;
   
   import com.octo.captcha.service.CaptchaServiceException;
  @@ -64,8 +65,11 @@
      @Create
      public void create()
      {
  +      if (service == null)
  +      {
         service = new DefaultManageableImageCaptchaService();
      }
  +   }
      
      @Override
      public String getResourcePath()
  @@ -110,4 +114,13 @@
         response.getOutputStream().close();
      }
      
  +   public ImageCaptchaService getService()
  +   {
  +      return service;
  +   }
  +   
  +   public void setService(ImageCaptchaService service)
  +   {
  +      this.service = service;
  +   }
   }
  
  
  



More information about the jboss-cvs-commits mailing list