Closed glassfishrobot closed 14 years ago
Reported by rogerk
rogerk said: Spec edits checked in.
rogerk said: Changes made: Section 5.4.1:
Removed redundant method annotation requirements already described in detail in the other specifications (annotations spec, for example).
Section now reads:
JSF implementations running in a Java EE 5 compliant container must support attaching the @PostConstruct and @PreDestroy annotations to aid in awareness of the managedbean lifecycle. Methods on managed beans declared to be in request, session, or application scope, annotated with @PostConstruct, must be called by the JSF implementation after resource injection is performed (if any) but before the bean is placed into scope.
If the method throws an unchecked exception, the JSF implementation must not put the managed-bean into service and further methods on that managed bean instance must not be called.
Methods on managed beans declared to be in request, session, or application scope, annotated with @PreDestroy, must be called by the JSF implementation before the bean is removed from its scope or before the scope itself is destroyed, whichever comes first. This annotation must be supported in all cases where the above @PostConstruct annotation is supported.
If the method throws an unchecked exception, the JSF implementation may log it, but the exception must not otherwise alter the execution.
Refer to the Java EE specification section 2.5 and the Common Annotations for the JavaTM PlatformTM specifcation section 2.5 for more details.
@edburns said: Prepare to delete "spec" subcomponent.
@edburns said: Move all to 1.2
@manfredriem said: Closing resolved issue out
Was assigned to rogerk
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-166
Marked as fixed on Thursday, March 4th 2010, 6:09:24 am
We detail the use of @PostConstruct and @PreDestroy in the spec even though it is covered in the annotations spec. We merely need to state that in an EE environment, we support the same annotations that are described in the Servlet 2.5 sepc.
Environment
Operating System: All Platform: All
Affected Versions
[1.2]