dev@javaserverfaces.java.net

Re: Listener Type

From: Adam Winer <adam.winer_at_oracle.com>
Date: Tue, 18 Sep 2007 09:44:33 -0700

Gurkan Erdogdu said the following on 9/18/07 12:13 AM PT:
> When using PhaseListener, CopyOnWriteList is used. when using FacesListener ordinary ArrayList is used. Is there any big decision to use differen list?

Yes. PhaseListeners are stored on the Lifecycle, which must
be thread-safe as they are re-used for simultaneous requests.
FacesListener objects are stored on UIComponents, which
are explicitly not thread-safe and may only be used in a single
request.

-- Adam


>
> Thanks;
>
> Gurkan
>
>
> ____________________________________________________________________________________
> Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>