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…
Those are just the settings that existed when the framework loaded.
By itself, a plugin that provides just a list is probably wasteful but one that can do a bit more makes some sense.
What else where you thinking if having your plugin do?
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?
Still unclear on what functionality you’re looking for. Coldbox has methods to retrieve the actual registered interceptors which I sent in my first post. Are you just looking for a place to store some convenience methods?
Talk to us about what you’re trying to get your app to do.
Brad
Slight change of question.
So, I dug into getting the configuration information and found:
controller.getConfigSettings().interceptorconfig.interceptors
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?
Mike