ColdBox Forums Notification: Post to Using ioc plugin in viewlet event handler

Title: RE: Using ioc plugin in viewlet event handler
Thread: Using ioc plugin in viewlet event handler
Forum: Need Help?
Conference: ColdBox
User: doryphores Luis,

I ran into another problem related to the ioc plugin. After running an
expireAll on the cache manager, the ioc plugin threw the same error (iocfactory
was missing).

I had a quick look at the ioc plugin and noticed that the
factory is setup via the configure method which is only run when the framework
is loaded (as far as I can tell).

Because the ioc plugin is in the cache, the
expireAll method also sets it to expire. But when this happens, the configure
method isn't run (and we end up with an empty ioc plugin).

Not sure if it is
related but this does cause problems when clearing the cache.

Any thoughts?
Or maybe I'm doing something wrong...

Martin
http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=8CDA1E69-FF65-CEF6-6596E3F9F1FB208B