Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
It might be useful - for instance in unit tests - to have a simple implementation of ConcurrentInitializer which just returns an object that was passed to the constructor. The object is stored in a final field, so no synchronization is needed. In contrast to LazyInitializer this class could be named EagerInitializer because the object must already exist.