Details

Description

The GsonHolder is a good candidate for a Service as it's unique and stateless, also while it's documented to be threadsafe it is using various ThreadLocal s so we shouldn't hold that in a static reference. Better be safe and avoid references to this on shutdown, especially for applications running Hibernate Search in an EE container.