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

Norman Richards norman.richards at jboss.com
Fri Nov 17 19:38:22 EST 2006


  User: nrichards
  Date: 06/11/17 19:38:22

  Added:       src/main/org/jboss/seam/annotations  Install.java
  Log:
  JBSEAM-484: add @Install annotation, rework initialization code
  
  Revision  Changes    Path
  1.1      date: 2006/11/18 00:38:22;  author: nrichards;  state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/Install.java
  
  Index: Install.java
  ===================================================================
  /*
   * JBoss, Home of Professional Open Source
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.seam.annotations;
  
  import java.lang.annotation.*;
  
  /**
   * Specifies whether or not a component should be installed if it is scanned
   * 
   */
  @Target(ElementType.TYPE)
  @Retention(RetentionPolicy.RUNTIME)
  @Documented
  public @interface Install {
      /**
       * @return indicates if the component should be installed
       */
      boolean value() default true;
      
      /**
       *  indicates that the component should not be installed unless the
       *  dependent components are installed
       */
      String[] depends() default {};
  }
  
  
  
  
  



More information about the jboss-cvs-commits mailing list