Pushing Guice in WOInject all the way down ?
Pushing Guice in WOInject all the way down ?
- Subject: Pushing Guice in WOInject all the way down ?
- From: Joseph Pachod <email@hidden>
- Date: Fri, 30 Mar 2012 12:26:30 +0200
Hi all (and especially Henrique)
Currently, if I get it right, WOInject makes it possible to use
Guice's bindings. However, regarding WebObjects entities and (web)
components' bindings, it's still the good old
"_NSUtilities.setClassForName(WOSubmitButton.class,
"WOSubmitButton");".
Why not using Guice/Modules for this matter as well?
Then there would be only one place and logic to look up to find out
actual implementations.
It would also unify the behavior, since Guice doesn't allow multiple
times the same bindings whereas WebObjects does.
If the concept pleases you, we already have, at my workplace, an
implementation for it which we could share. This implementation works
through a subclass of Guice's AbstractModule which kind of "redirects"
WebObjects bindings, checking them the Guice's way and making them
happen the WebObjects way.
Eager to read you back
Best,
Joseph
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden