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:[EMAIL PROTECTED] 
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

Reply via email to