javax.ejb

## Annotation Type PrePassivate

-     @Target(value=METHOD)
      @Retention(value=RUNTIME)
      public @interface PrePassivate

  Designates a method to receive a callback before a stateful session bean is passivated.

  If the method to which this annotation is applied is defined on an interceptor class, it must have one of the following signatures:

       void <METHOD>(InvocationContext)

       Object <METHOD>(InvocationContext) throws Exception

  If the method to which this annotation is applied is defined on a target class, it must have the following signature:

       void <METHOD>()

  The method can have public, private, protected, or package level access. It must not be declared as final or static.
  Since:
    EJB 3.0

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.