Author: Guillaume Smet <guillaume.smet(a)gmail.com>
Date: 2018-07-19 (Thu, 19 Jul 2018)
HHH-12791 Cache the Component type to avoid generating one proxy per call
While Javassist only generates one proxy as the name is stable,
ByteBuddy uses random names and thus generates a new proxy for every
call, leading to the generation of 18 different proxies for the other
test of the test class.
We can't do better than using a volatile/synchronized pattern as the
Component is not fully initialized in the constructor.
Maybe we could take the risk of admitting that the getType() method is
called at least once before we pass the element to a multi-threaded
environment but that's a bet I don't want to take alone.
**NOTE:** This service been marked for deprecation:
Functionality will be removed from GitHub.com
on January 31st, 2019.