MessageInterpolatorImplCustom MessageInterpolatorImpl for HK2
This message interpolator is different from the default one in the following
ways:
- It uses a class specified in the "payload" argument to the annotation to
find the class loader to find the resource bundle for messages. This allows
classes that are in OSGi modules to specify a resource bundle for bean
validation messages.
- The "LocalStrings" resource bundle within the same package as the payload
class is used to search for messages. If a message is not found, the message
is obtained from the default bean validation resource bundle.