javaee / javaserverfaces-spec

JavaServer(TM) Faces Specification web site
https://javaee.github.io/javaserverfaces-spec/
Other
43 stars 19 forks source link

Redundant Annotation #166

Closed glassfishrobot closed 14 years ago

glassfishrobot commented 18 years ago

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]

glassfishrobot commented 18 years ago

Reported by rogerk

glassfishrobot commented 18 years ago

rogerk said: Spec edits checked in.

glassfishrobot commented 18 years ago

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.

glassfishrobot commented 14 years ago

@edburns said: Prepare to delete "spec" subcomponent.

glassfishrobot commented 14 years ago

@edburns said: Move all to 1.2

glassfishrobot commented 10 years ago

@manfredriem said: Closing resolved issue out

glassfishrobot commented 18 years ago

Was assigned to rogerk

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-166

glassfishrobot commented 14 years ago

Marked as fixed on Thursday, March 4th 2010, 6:09:24 am