001 package javax.portlet.faces.annotation;
002
003 import java.lang.annotation.Documented;
004 import java.lang.annotation.ElementType;
005 import java.lang.annotation.Retention;
006 import java.lang.annotation.RetentionPolicy;
007 import java.lang.annotation.Target;
008
009 /** The BridgeRequestScopeAttributeAdded annotation is used on methods as a callback
010 * notification to signal that the instance is in the process of being added
011 * to the container's request scope and that this attribute will be managed
012 * in the bridge request scope. This signal can be used by the instance to flag
013 * that its <code>javax.annotation.PreDestroy</code> method should not perform any cleanup
014 * and instead rely on the method annotated with
015 * <code>javax.portlet.faces.annotation.PreDestroy</code> to do so. The method on
016 * which the PreDestroy annotation is applied MUST
017 * fulfill all of the following criteria - The method MUST NOT have any parameters -
018 * The return type of the method MUST be void. - The method MUST NOT throw a checked
019 * exception. - The method on which PreDestroy is applied MUST be public. - The
020 * method MUST NOT be static. - The method MAY be final. - If the method throws an
021 * unchecked exception it is ignored.
022 */
023
024 @Documented
025 @Retention(RetentionPolicy.RUNTIME)
026 @Target({ElementType.METHOD})
027 public @interface BridgeRequestScopeAttributeAdded {
028 }
029