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