Chris Scott wrote:
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()).
Yes, I just noticed about it returning an array - however, the pluginArray is already available in the pluginManager...might as well use it. I'm still trying to get a comprehensive grasp of the code base.
Regarding the up and coming release of Mach-II 1.1.0, there won't be any getListenerNames(), getFilterNames() or getPluginNames(). The request was made after the 1.1.0 code freeze and is scheduled for the post 1.1.0 release. Sorry...
Also, you'll want to include any 1.0.10 users of Mach-II (I guess you could call it legacy applications?) - so the method injection implementation is still probably the best way of doing it until 1.0.10 and 1.1.0 is completely superseded by the post 1.1.0 version. The method injection is the best way to remain BC with Mach-II for a while - otherwise you'll need to have a different version of the plugin depending on what version of Mach-II they are running (one for 1.0.10 and 1.1.0 and another for the post 1.1.0 version when it gets getListenerNames() etc.).
I'm not sure about using a java vector for the autowire step - are the performance increases realistic or theoretical? Also, I'm not sure about CS and BlueDragon - however, I don't know your plans with BD, but Mach-II supposedly runs on BD and Railo (that other lesser known engine).
.Peter -- 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!
