Actually, Peter, the injected methods get the StruckKeyArray from the managers and then ask for the plugins to put in the array. A actually have a few things I was thinking about for cleanup/optimization. We had talked to Ben about having the getListenerNames() FilterNames(), PluginNames() to build the array, so I was kind of waiting for the release to change the methods. I think I may want to leave the injected methods in there for a while, though. There's no real reason to be only 10.0.10 compliant. The one thing I was thinking about for optimization is to not use a cf array and use a java vector to hold the target cfc for the actual autowire step, then I can call targets.addAll(getPlugins())), targets.addAll(getFilters()), targets.addAll(getListeners()).

On Nov 4, 2005, at 6:01 PM, Peter J. Farrell wrote:

Chris Scott wrote:

Sorry guys, I think that one plugin is actually not supposed to be there. All the functionality is in the coldspringPlugin.cfc, just ignore the ColdSpringMachiiConfigPlugin. That was the first one written, then I rolled the functionality into the standard plugin and cleaned it up. That's my mistake that the original plugin is even there in the first place. Sorry!

I found there is little optimization trick for the plugins section of the coldspringPlugin.cfc as well. In the getPlugins method, you get a struct from the Mach-II plugin manager via method injection and loop over it to create an array. However, the loop is unnecessary since the Mach-II's pluginManager already has a contains an array of plugin names called variables.pluginArray (I know it's in 1.1.0 and 1.0.10). I don't have an older version of Mach-II any more - so you would have to check for BC - however, anybody running something older than 1.0.10 is probably should have upgrade to that by now (almost a year).

--
Peter J. Farrell :: Maestro Publishing
http://blog.maestropublishing.com

Rooibos Generator - Version 2.1
Create boilerplate beans and transfer objects for ColdFusion for free!
http://rooibos.maestropublishing.com/

Member Team Mach-II - It's coming...we're in a code freeze!




Reply via email to