wicket-guice and Logger injection

2012-08-09 Thread Lawrence, Sean
Hi, I'm attempting to use wicket-guice to inject Logger references into my application with logging. So instead of: Logger logger = LoggerFactory.getLogger(HomePage.class); I would rather: @Log Logger logger; I've followed the guice documentation closely and have been frustratingly unable

Re: wicket-guice and Logger injection

2012-08-09 Thread Dan Retzlaff
Hi Sean, Keep in mind that Guice isn't directly injecting your Wicket components. That happens through org.apache.wicket.guice.GuiceComponentInjector. More specifically, see GuiceFieldValueFactory#supportsField() which only recognizes @Inject annotated fields as requiring injection. HTH, Dan On