myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iordanov, Borislav \(GIC\)" <bo...@miamidade.gov>
Subject RE: singleton validators and converters
Date Fri, 08 Dec 2006 19:13:03 GMT
No problem with concurrency, as I said they have no state. A lot of
patterns would make sense, but JSF API/taglib doesn't seem to facilitate
any of them, hence my question.

 

Best,

Bolerio

 

________________________________

From: Julian Ray [mailto:julianjray@yahoo.com] 
Sent: Friday, December 08, 2006 1:00 PM
To: 'MyFaces Discussion'
Subject: RE: singleton validators and converters

 

Wouldn't singletons need to be multi-threaded otherwise you will get
probems with concurrency. Would a pooled resource pattern make more
sense if you validators/converters are costly to create?

 

 

________________________________

From: Iordanov, Borislav (GIC) [mailto:boris@miamidade.gov] 
Sent: Friday, December 08, 2006 12:48 PM
To: MyFaces Discussion
Subject: singleton validators and converters

Hi,

 

Is there a standard way/practice to have singleton validators and
converters? Those are mostly stateless and in a large application with
aggressive input validation, it would make sense to avoid creating them
on the fly each time and for each user.

 

Thanks,

Bolerio


Mime
View raw message