Here's an interesting dilemma. I'm using Brian's TDO bean injector and
I have it auto-load with lazy-init="false" and that works just fine.
Now I have multiple Transfer XML files and so I figured I could force
those to be added by using lazy-init="false" (and factory-method to
force calls to addConfig() on transferConfiguration).

Anyone see the problem? Right, the non-lazy beans are initialized in a
random order so some configurations are applied but the TDO bean
injector is created which creates Transfer and so no more
configurations can be applied...

What I'm after is some way to force init a bunch of beans and have
another bean initialized before my application actually runs.

In one app using Mach-II I just added a plugin with a setter for the
TDO bean injector which forces the right sequence (because autowiring
is performed after ColdSpring initialization but before the app runs).
This works even for remote requests because Mach-II initializes via
Application.cfc.

Any suggestions / tricks for doing this automatically in other applications?


-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

Reply via email to