The Cache Monitor shows the Object named as "appservice".
Shoudn't the key be named something like "model-cms.modules.mod1.appservice"
in the same syntax as modules handlers or "mod1Service@mod1" to keep
it unique? The property injection also refers to "mod1Service@mod1".
Thanks for the Update on the Beanfactory.cfc.
I repeated my tests today using the new Beanfactory.cfc.
ColdBox Cache now shows up 2 unique Objects:
model-service@mod1-cms.modules.mod2.model.service
model-service@mod2-cms.modules.mod2.model.service
But Module 1 still calls the ServiceObject of Module 2 instead
of Module 1, no matter what order the Module is loaded or
called the first time.
Am i missing something in my Configuration?
To me locateModel() seams to return the wrong modelClassPath (Beanfactory.cfc)
locateModel() looks up the instance.ModelsExternalLocation instead of explicit
looking at the modules model path. This way it just returns the first cfc that
matches its name.
Would locateModel() need to be extended with the modules-information, to
keep the Module-Models encapsulated?
Modules Model-Objects get cached twice but still refer to the same
object.
Models have to be named unique inbetween multiple Modules to be
cached
separate, because locateModel() in Beanfactory.cfc doesn't locate the
Model-CFC in the modules-Models folder only.
ColdBox Cache now shows up 2 unique Objects, but refers to the same
CFC