Hi,
after looking into the source code it seems not possible to use the
@Named annotation within controllers. The guice module can only inject
@Named instances into classes annotated with the @InjectSupport
annotation. The problem is that the instances for the static
controller fields will be injected by the play.inject.Injector class.
And this play framework class doesn't support the @Named annotation.
Cheers,
Christian
On May 10, 9:54 am, Christian Kaps <
kaps.christ...@googlemail.com>
wrote:
> Hi,
>
> have you found any solution for this problem? I have the the same
> problem using provider methods.
>
> As mentioned in the following thread it should actually work:
https://groups.google.com/forum/#!msg/play-framework/gqxUiYVjIA0/EGYH...