This content has been marked as final.
Show 2 replies
-
1. Re: Constructor of @Singleton called multiple times
jaikiran Jul 9, 2012 6:35 AM (in response to reschifl)You shouldn't rely on the number of times a constructor is called. The spec has a note about this. It's the @PostConstruct which you should rely on - that will be called only once.
-
2. Re: Constructor of @Singleton called multiple times
reschifl Jul 9, 2012 7:09 AM (in response to jaikiran)You shouldn't rely on the number of times a constructor is called. The spec has a note about this. It's the @PostConstruct which you should rely on - that will be called only once.
The behavior irritated me, but if it is valid, then I it's ok.
Thank you for the answer!
Regards,
Lars