[coldbox-3.5.2] List of Registered Interceptors

I am looking for a way to get a listing of registered interceptors. I expected to find something in the API but did not.


Slight change of question.

So, I dug into getting the configuration information and found:


dishes out an array of the interceptors. If that is not the best way to accomplish this, please chime in.

Now the question is, of course, I can just issue that command to get the information, but I don’t know if that is a list of registered interceptors or simply the settings…so I had the thought that I’d write a plugin that provides the simple list but can also use the other functions in the api that allow me to get named interceptors from the pool of registered ones. By itself, a plugin that provides just a list is probably wasteful but one that can do a bit more makes some sense.

The change in question really is this: Is this a plugin candidate or is there a better way to expose this kind of functionality using coldbox?


You can so that but those are only the ones loaded by the configuration file not at runtime. The interceptor service already know about all interceptors and it has the ability to give you all interceptor states back to you. Each state object then has a list of references to the interceptors it manages.

Luis Majano
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano