Re: guide extra filter does not bind.

2018-06-22 Thread Rick Coup
Thanks Tom, you nailed it. On Friday, June 22, 2018 at 5:07:04 PM UTC-4, Thomas Broyer wrote: > > If you explicitly call the JWTFilter() method, then don't annotate it with > `@Provides`. > > The error is that you have more than one bindings for the Filter class > with no qualifier annotation, a

guide extra filter does not bind.

2018-06-22 Thread Thomas Broyer
If you explicitly call the JWTFilter() method, then don't annotate it with `@Provides`. The error is that you have more than one bindings for the Filter class with no qualifier annotation, and not providing into a set (multibinding); but you don't actually need those bindings. -- You received

guide extra filter does not bind.

2018-06-22 Thread Rick Coup
I am trying to add an extra filter to the existing module. The JWTFilter is added below. /** * Copyright 2016 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lic

Re: Guice injection not working in web application

2018-06-22 Thread Adil Quraish
Thanks. Based on your suggestion, I have modified BankAccountServiceProvider as follows - public class BankAccountServiceProvider implements Provider { @Inject private MembersInjector membersInjector; @Override public BankAccountService get() { BankAccountService bankAc