RE: [coldbox:16259] 3.5.2 - Accessing Cachebox in non injected CFC

While not understanding exactly what you have going on, I would concur that an interceptor afterConfurationLoad or afterAspectsLoad might be something to look into.

To answer your question about a CFC which lives outside of ColdBox, you could create an instance of a proxy object and have it retrieve whatever you need since it knows how to contact the ColdBox application. Of course, you can’t access CacheBox until the framework is loaded anyway which brings me back around to my (well, Andrew’s) first suggestion of creating an interceptor to listen to application startup and set whatever config you want right then. Interceptors have access to everything.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com