[coldbox:4058] module loading order..

Not sure if I'm missing something but I have 6 modules that I am
loading into an app and some of these modules have their own
interceptors coming along for the ride with them (in addition to the
ModuleConfig.cfc handling some events).. some of these modules are
dependent on some other module being loaded.

The problem I'm having is that CB is loading all modules from this one
folder in some order IDK.. I cannot find a way to control precisely
the order of registration of modules/interceptors using Option #1...

Option #1 <Setting name="ModulesLocation" value="/fof/mvc/cb/
modules" />

Option #2 I could create my own ModuleLoader and let it do all the
programmatic loading of of my modules, and interceptor registrations
as I needed.. and this will most likely work!

I'm just curious if there are any other options to control loading I
can use with Option #1?

Regards,
Adam

Adam, this is a great ticket. I will create a ticket, so in the module configuration you can specify the order via the Includes array.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Also,

You can create your own module loader interceptor, that loads them in the order you want for now. Thanks!

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

You can create your own module loader interceptor, that loads them in the
order you want for now. Thanks!

Originally, I had an interceptor loading the modules, then I thought,
hey this could be it's own module.

I had found other areas in my design that were already leading me back
to coding a single ModuleLoader for the host application which would
then setup my module packages as specified by me rather then relying
on the framework to load a particular module's interceptor before any
other.

Thank you for your responses!

I will have other questions on subject.

-Adam

Ticket #991 : status changed from New to Fixed on May 12th.. I'm 5
days late and 20 bucks short.. but,

Thanks Luis!