[ 
https://issues.apache.org/jira/browse/JAMES-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13577896#comment-13577896
 ] 

Eike Kettner commented on JAMES-1477:
-------------------------------------

Hi Eric,

In my app, I setup James with Guice. Now, I just build against the new snaphost 
version and I found @Named annotations on setter methods. I thought those 
should be applied to the parameters instead -- at least that's what guice 
expects here. I saw that you explicitely moved existing @Named annotations from 
the parameter up to the method (ex. 
https://github.com/apache/james/commit/d6677f55e7c64b93390ae138913c61a8211d0a72#diff-5).
 How did you make it work that way?

That is what guice is telling me:

  
org.apache.james.adapter.mailbox.store.UserRepositoryAuthenticator.setUsersRepository()
 is annotated with @javax.inject.Named(value=usersrepository), but binding 
annotations should be applied to its parameters instead.

Thanks, and regards,
Eike
                
> Replace @Resource with @Inject where it can
> -------------------------------------------
>
>                 Key: JAMES-1477
>                 URL: https://issues.apache.org/jira/browse/JAMES-1477
>             Project: James Server
>          Issue Type: Sub-task
>            Reporter: Eric Charles
>            Assignee: Eric Charles
>
> This will allow also allow to work with different dependency injection 
> frameworks (spring, guice...).
> See also JAMES-1237.

--
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

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to