My apps encounter error like
1) Error injecting constructor,
java.lang.IllegalAccessError:...........................
when i used bindInterceptor and constructor injection. (The apps run
fine when i use field injection)
Is there any way to solve the conflict?
i)LoggingModule
public class LoggingModule extends AbstractModule {
@Override
protected void configure() {
LoggingInterceptor loggingInterceptor = new
LoggingInterceptor();
requestInjection(loggingInterceptor);
bindInterceptor(Matchers.any() ,Matchers.any(),
loggingInterceptor);
}
}
ii)
constructor
@Inject
LogonServlet(Provider<HttpSession> sessionProvider, LDAPDao ldapDao,
final BasicDetailDao basicDetailDao, final CommonDao
commonDao,
final UserDao userDao) {
this.sessionProvider = sessionProvider;
this.userDao = userDao;
}
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.