Issue Type: Task Task
Assignee: Unassigned
Created: 26/Nov/12 6:47 AM
Description:

From https://github.com/hibernate/hibernate-validator/pull/148:

I'm wondering whether we need to release/destroy the created beans for message interpolator, parameter name provider etc. (as we do with created CDI constraint validators). Or is this happening somewhere?

It depends if the bean has been created by you or not:

  • when a bean instance is passed to the programmatic configuration API, then the provider is not responsible
  • when the bean class is provided (say via the XML file), then yes.

The rule of thumb is that what you create, you release. What you receive you leave alone.

Project: Bean Validation
Priority: Major Major
Reporter: Gunnar Morling
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira