Dear Friends,

In multithreaded environment in multi-core cpu machine, I found
@provides to be not-thread safe. However if I write Provider class and
bind using 'toProvider' then it is showing expected behavior.

Is this my right understanding that @Provides is not thread safe. Has
anybody experienced this before? By not thread safe I mean an instance
of an object is being reused when i use @provides, ofcourse this was
totally unacceptable as the Object has instance variable causing
inconsistencies.

Appreciate feedback.

Peace,
Surya

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to