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 #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?
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.