diff --git a/src/site/xdoc/userguide.xml b/src/site/xdoc/userguide.xml index 517c022ec..71429442f 100644 --- a/src/site/xdoc/userguide.xml +++ b/src/site/xdoc/userguide.xml @@ -255,6 +255,14 @@ public interface ConcurrentInitializer { obtained. There are different implementations of the interface available addressing various use cases:

+

+ ConstantInitializer is a very straightforward implementation of + the ConcurrentInitializer interface: An instance is passed an + object when it is constructed. In its get() method it simply + returns this object. This is useful, for instance in unit tests or in cases + when you want to pass a specific object to a component which expects a + ConcurrentInitializer. +

The LazyInitializer class can be used to defer the creation of an object until it is actually used. This makes sense, for instance, if the