Christoph Grün schrieb:
thanks for your posting!
Is the Injector of type google.guice injector or apache.wicket injector?
Where is the method getInjector implemented?
*g* embarrasing, sorry ;)
here is the rest:
private static Injector getInjector()
{
Application application = Application.get();
Assert.isNotNull(application, "Application is not attached");
return getInjector(application);
}
private static Injector getInjector(final Application application)
{
GuiceInjectorHolder gih =
application.getMetaData(GuiceInjectorHolder.INJECTOR_KEY);
Assert.isNotNull(gih, "GuiceInjectorHolder not found in
Meta-Data");
Injector injector = gih.getInjector();
return injector;
}
the point of it all is that you use the wicket´s GuiceComponentInjector
instead of Guice Injector to do the actual injection, for it creates the
proxies needed.
cu uwe
--
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 85 59 0
F + 49 761 3 85 59 550
E [email protected]
www.thomas-daily.de
Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947
Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für
die TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD
Premium, morgens ab 9:15 in Ihrer Mailbox.
Aktuelle Presseinformationen für die TD Morning News und TD Premium
nimmt unsere Redaktion unter [email protected] entgegen.
Redaktionsschluss für die TD Morning News ist täglich um 8:45.
Register free of charge at https://www.thomas-daily.de/user/sign-in to
have the TD Morning News, a selection of the latest topics from TD
Premium, delivered to your mailbox from 9:15 every morning.
Our editorial department receives the latest press releases for the TD
Morning News and TD Premium at [email protected]. The editorial
deadline for the TD Morning News is 8.45am daily.
--
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.