users@jpa-spec.java.net

[jpa-spec users] Re: JPA_SPEC-109: Allow AttributeConverters to be CDI injectable

From: Adam Bien <abien_at_adam-bien.com>
Date: Tue, 2 May 2017 05:50:52 +0200

+1
> On 27. Apr 2017, at 19:19, z06.guillermo_at_gmail.com wrote:
>
> Pretty good!
>
> I'm with Arjan in the CDI bean approach. Both entity listeners and
> converters could benefit from being CDI managed beans (if the container
> corresponding supports it).
>
> With the increasing general CDI integration, people are expecting
> everyhing to be full "CDI capable". It would be a shame to miss this
> oportunity.
>
> The scope would probably need to be @Dependent if you want to maintain
> it as a non contextual object, so no big deal there.
>
>
> Regards,
>
> Guillermo González de Agüero.