ANN: Governator 1.0.3

36 views
Skip to first unread message

Randgalt

unread,
Jan 3, 2013, 8:35:28 PM1/3/13
to google...@googlegroups.com
Changes:

* Added a new scope, FineGrainedLazySingleton. Guice's default Singleton scope synchronizes
all object creation on a single lock (InternalInjectorCreator.class). It does this to avoid
deadlocks with circular dependencies. FineGrainedLazySingleton instead locks on the key
so that multiple singletons can be created concurrently. Circular dependencies are rare
so FineGrainedLazySingleton risks deadlocks in those situations for the benefit of better
concurrency.

* Made LifecycleManager more concurrent by removing the coarse syncs on the add methods.

Reply all
Reply to author
Forward
0 new messages