src/share/jaxws_classes/javax/annotation/PostConstruct.java

Print this page
rev 507 : 8047724: @since tag cleanup in jaxws
Reviewed-by:


  53  * <p>
  54  * <i>Note: A PostConstruct interceptor method must not throw application
  55  * exceptions, but it may be declared to throw checked exceptions including
  56  * the java.lang.Exception if the same interceptor method interposes on
  57  * business or timeout methods in addition to lifecycle events. If a
  58  * PostConstruct interceptor method returns a value, it is ignored by
  59  * the container.</i>
  60  * </li>
  61  * <li>The method defined on a non-interceptor class MUST HAVE the
  62  * following signature:
  63  * <p>
  64  * void <METHOD>()
  65  * </li>
  66  * <li>The method on which PostConstruct is applied MAY be public, protected,
  67  * package private or private.</li>
  68  * <li>The method MUST NOT be static except for the application client.</li>
  69  * <li>The method MAY be final.</li>
  70  * <li>If the method throws an unchecked exception the class MUST NOT be put into
  71  * service except in the case of EJBs where the EJB can handle exceptions and
  72  * even recover from them.</li></ul>
  73  * @since Common Annotations 1.0
  74  * @see javax.annotation.PreDestroy
  75  * @see javax.annotation.Resource

  76  */
  77 @Documented
  78 @Retention (RUNTIME)
  79 @Target(METHOD)
  80 public @interface PostConstruct {
  81 }


  53  * <p>
  54  * <i>Note: A PostConstruct interceptor method must not throw application
  55  * exceptions, but it may be declared to throw checked exceptions including
  56  * the java.lang.Exception if the same interceptor method interposes on
  57  * business or timeout methods in addition to lifecycle events. If a
  58  * PostConstruct interceptor method returns a value, it is ignored by
  59  * the container.</i>
  60  * </li>
  61  * <li>The method defined on a non-interceptor class MUST HAVE the
  62  * following signature:
  63  * <p>
  64  * void <METHOD>()
  65  * </li>
  66  * <li>The method on which PostConstruct is applied MAY be public, protected,
  67  * package private or private.</li>
  68  * <li>The method MUST NOT be static except for the application client.</li>
  69  * <li>The method MAY be final.</li>
  70  * <li>If the method throws an unchecked exception the class MUST NOT be put into
  71  * service except in the case of EJBs where the EJB can handle exceptions and
  72  * even recover from them.</li></ul>
  73  *
  74  * @see javax.annotation.PreDestroy
  75  * @see javax.annotation.Resource
  76  * @since 1.6, Common Annotations 1.0
  77  */
  78 @Documented
  79 @Retention (RUNTIME)
  80 @Target(METHOD)
  81 public @interface PostConstruct {
  82 }