dpolishuk / atinject

Automatically exported from code.google.com/p/atinject
0 stars 0 forks source link

What's the meaning of "once" for @Singleton? #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The spec for @Singleton says: "Identifies a type that the injector only
instantiates once."

What kind of "once" is this? Once per VM? per classloader? per thread? per
thread group? per injector instance? - The last one (per injector instance)
would make the most sense to me.

Original issue reported on code.google.com by bokowski on 10 Sep 2009 at 4:54

GoogleCodeExporter commented 9 years ago
Once per injector.

Original comment by crazybob...@gmail.com on 10 Sep 2009 at 10:38