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

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 408
b0610cd08440
     1.1 --- a/src/share/jaxws_classes/javax/annotation/PreDestroy.java	Thu Apr 04 19:05:24 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/javax/annotation/PreDestroy.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -37,18 +37,18 @@
    1.11   * supported by all container managed objects that support PostConstruct
    1.12   * except the application client container in Java EE 5. The method on which
    1.13   * the PreDestroy annotation is applied MUST fulfill all of the following
    1.14 - * criteria -
    1.15 - * - The method MUST NOT have any parameters except in the case of EJB
    1.16 + * criteria:<ul>
    1.17 + * <li>The method MUST NOT have any parameters except in the case of EJB
    1.18   * interceptors in which case it takes an InvocationContext object as defined
    1.19 - * by the EJB specification.
    1.20 - * - The return type of the method MUST be void.
    1.21 - * - The method MUST NOT throw a checked exception.
    1.22 - * - The method on which PreDestroy is applied MAY be public, protected,
    1.23 - * package private or private.
    1.24 - * - The method MUST NOT be static.
    1.25 - * - The method MAY be final.
    1.26 - * - If the method throws an unchecked exception it is ignored except in the
    1.27 - * case of EJBs where the EJB can handle exceptions.
    1.28 + * by the EJB specification.</li>
    1.29 + * <li>The return type of the method MUST be void.</li>
    1.30 + * <li>The method MUST NOT throw a checked exception.</li>
    1.31 + * <li>The method on which PreDestroy is applied MAY be public, protected,
    1.32 + * package private or private.</li>
    1.33 + * <li>The method MUST NOT be static.</li>
    1.34 + * <li>The method MAY be final.</li>
    1.35 + * <li>If the method throws an unchecked exception it is ignored except in the
    1.36 + * case of EJBs where the EJB can handle exceptions.</li>
    1.37   *
    1.38   * @see javax.annotation.PostConstruct
    1.39   * @see javax.annotation.Resource

mercurial