Im thinking it has something todo with private / child injection trickery..
Like the parent AOP are not able to access the child bindings
Why am I getting binding errors when doing AOP?Initially my bindings were in a private module.. The architectureconsist of this:Parent-Injector|---AOP Module|---Child Injector (initially private)|-----|-Module with AOP annotationLast cause: Guice configuration errors:1) Unable to create binding forcom.netdesign.dao.cisco.v7.uccx.CiscoStatisticsMapper. It was alreadyconfigured on one or more child injectors or private modules
bound at org.mybatis.guice.AbstractMyBatisModule.bindMapper(AbstractMyBatisModule.java:80)If it was in a PrivateModule, did you forget to expose the binding?while locating com.netdesign.dao.cisco.v7.uccx.CiscoStatisticsMapperfor field atcom.netdesign.dao.cisco.v7.uccx.CiscoWallBoardDataProvider.ciscoStatisticsMapper(CiscoWallBoardDataProvider.java:862)while locatingcom.netdesign.dao.cisco.v7.uccx.CiscoUCCX7WallBoardDataProvider$$EnhancerByGuice$$fa857977If if do not install everything runs fine. Of course the AOP are not run..What could be wrong?--Best regards / Med venlig hilsenNino Martinez
--You received this message because you are subscribed to the Google Groups "google-guice" group.To unsubscribe from this group and stop receiving emails from it, send an email to google-guice...@googlegroups.com.To post to this group, send email to google...@googlegroups.com.Visit this group at http://groups.google.com/group/google-guice.To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CAAHmKFzxv9X5pU%3D-8Hq1fR5w6cbSU6nm%3DQ3LsR5DXbG-qpvyOA%40mail.gmail.com.For more options, visit https://groups.google.com/d/optout.
And that is where the problem comes. We are using a very pluggable architecture. Where we drop in jars/modules that then are loaded and exposes an interface (which shares data/structure), however inside the droppables which are in child injectors and private modules they may depend on something like aop in the parent injector. I think I'm pushing the limit a bit and full blown osgi might be better. Instead of this guice based one..
However im a bit sad to leave guice out because it handles a lot of boiler plate for us.. afaik it's not a good mix osgi and traditional ioc like guice?
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/F1100F39ECAA4ACCBF3D8AD48E8C9559%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CAAHmKFx9kR1EFn9Buqp9ctyZovvM13ZEtWVH_akD_30dX%3DPUHg%40mail.gmail.com.
I was able to solve this particular problem by moving the injector to a higher tier
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/CAD-udUAvL9LJ9usRZZ%3DjASEJBxYkwwdFg7rMfh6fPE9r75_brA%40mail.gmail.com.