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

Gavin King gavin.king at jboss.com
Mon Jun 25 18:28:50 EDT 2007


  User: gavin   
  Date: 07/06/25 18:28:50

  Added:       src/main/org/jboss/seam/annotations/web   Filter.java
                        RequestParameter.java
  Log:
  move annotations to subpackages
  
  Revision  Changes    Path
  1.1      date: 2007/06/25 22:28:50;  author: gavin;  state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/web/Filter.java
  
  Index: Filter.java
  ===================================================================
  package org.jboss.seam.annotations.web;
  
  import static java.lang.annotation.ElementType.TYPE;
  import static java.lang.annotation.RetentionPolicy.RUNTIME;
  
  import java.lang.annotation.Documented;
  import java.lang.annotation.Retention;
  import java.lang.annotation.Target;
  
  /**
   * Annotates a servlet filter that should be installed
   * by Seam's master filter and specifies its ordering 
   * with respect to other filters in the stack.
   * 
   */
  @Target(TYPE)
  @Retention(RUNTIME)
  @Documented
  public @interface Filter
  {
     
     /**
      * Specifies that a filter is called "around" 
      * another filter or filters.
      */
     String[] around() default {};
     /**
      * Specifies that an filter is called "within" 
      * another filter or filterss.
      */
     String[] within() default {};
  
  }
  
  
  
  1.1      date: 2007/06/25 22:28:50;  author: gavin;  state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/web/RequestParameter.java
  
  Index: RequestParameter.java
  ===================================================================
  //$Id: RequestParameter.java,v 1.1 2007/06/25 22:28:50 gavin Exp $
  package org.jboss.seam.annotations.web;
  
  import static java.lang.annotation.ElementType.FIELD;
  import static java.lang.annotation.ElementType.METHOD;
  import static java.lang.annotation.RetentionPolicy.RUNTIME;
  
  import java.lang.annotation.Documented;
  import java.lang.annotation.Retention;
  import java.lang.annotation.Target;
  
  /**
   * Injects a request parameter value
   * 
   * @author Gavin King
   */
  @Target({METHOD, FIELD/*, PARAMETER*/})
  @Retention(RUNTIME)
  @Documented
  public @interface RequestParameter 
  {
     /**
      * The name of the request parameter
      */
     String value() default "";
  }
  
  
  



More information about the jboss-cvs-commits mailing list