Hi Henrique (and any other WOInject fans),

I am taking WOInject for a test drive. I have what couldn’t be an uncommon 
situation: an intermediate, framework-level WOApplication subclass that 
provides numerous convenience features to the application. The inheritance 
hierarchy looks like this:

Application → LSApplication → ERXApplication

Since InjectableApplication extends ERXApplication, I figured this would be the 
way to go:

Application → LSApplication → InjectableApplication → ERXApplication

In Application.main() I call WOInject.init() with the Application class as the 
String argument, but this fails:

> Cannot initialize the injector. The Application class doesn't extend 
> InjectableApplication.


So I tried LSApplication as the String argument (because it’s the class that 
does extend InjectableApplication), but this fails with the same Exception.

Is this kind of inheritance hierarchy just not supported by WOInject? That is, 
does Application itself have to extend InjectableApplication directly?


-- 
Paul Hoadley
http://logicsquad.net/




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to