Sven Reinck
2018-02-15 08:13:30 UTC
Hi there...
I'm trying to inject a java.util.Logger into my Wicket WebPage... But there
is a problem... Since only field injection is possible for Wicket pages
Guice tries to build a proxy which doesn't work because the Logger needs
parameters. The only way I got it to work was with objenesis... But the
classname is not correct then so injecting a Logger this way is useless.
This should be a so common usecase that I cannot belive this isn't
working... Has anyone made it work?
I'm trying to inject a java.util.Logger into my Wicket WebPage... But there
is a problem... Since only field injection is possible for Wicket pages
Guice tries to build a proxy which doesn't work because the Logger needs
parameters. The only way I got it to work was with objenesis... But the
classname is not correct then so injecting a Logger this way is useless.
This should be a so common usecase that I cannot belive this isn't
working... Has anyone made it work?
--
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 https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/1cde2721-cec8-44b9-9993-c3984babe1e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/1cde2721-cec8-44b9-9993-c3984babe1e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.