hey Kumar,
It works amazing. A good piece of work.
Chris Gether
On Oct 19, 5:00 am, Santosh Kumar <
santoshkumar.ku...@gmail.com>
wrote:
> Hey Christophe,
>
> I found an elegant way to inject renderers using Spring Actionscript Frame
> Work. Please find the attached files
>
> *bin-release.zip* contains the output folder with view source enabled.
>
> *SpringProject.zip* is a Flex Archive Project also contains all the source
> files.
>
> *I'm contributing the following files placed in the package
> org.springextensions.actionscript.objects*
>
> *ClassRendererFactory.as
> IClassRendererFactory.as*
>
> to enable the support for renderer injection using spring Actionscript 0.8.
> *
> Why ?*
>
> Because Flex Frame Work all renderers(itemRenderer,HeaderRenderer etc) are
> created using ClassFactory, ContextualClassFactory etc they *all implement
> IFactory interface which instantiates renderer object using key word 'new'
> internally by flex framework*. *So we don't want to instantiate renderer
> object using 'new' key word, So created ClassRendererFactory implements
> IFactory,IClassRendererFactory which implements newInstance() method where
> we hook up the applicationContext to create renderer object defined in
> applicationContext.xml .*
>
> *For More details:*
>
> I have documented all the source code, Please review them, let me know
> your thoughts.
> *
> All Members:
>
> *I hope everyone gets my attachments, if not please feel free to email me at
>
santoshkumar.ku...@gmail.com
>
> I'm excited about the power of framework.
>
> Thanking you,
>
> Regards,
> Santosh Kumar
>
> On Fri, Jul 24, 2009 at 2:37 AM, Christophe Herreman <
>
>
>
>
christophe.herre...@gmail.com> wrote:
> > Hi Santosh,
>
> > thanks for reporting this.
> > I'm forwarding this mail to the dev group so our incredible doc writer can
> > pick this up ;-)
>
> > regards,
> > Christophe
>
> > 2009/7/24 Santosh Kumar <
santoshkumar.ku...@gmail.com>
>
> > Hi Christophe,
>
> >> I found one small mistake in Document for both in html version and PDF
> >> version.
>
> >> *Documents Defect:*
> >> *
> >> #1 (3.1.1.4. The Command Factory)
> >> *
> >> *CommandBase Class* (*there is no _modelInstance declared as a variable)*
>
> >> function set applicationModel(value:IApplicationModel):void {
>
> >> *// It should be _applicationModel not _modelInstance ;*
>
> >> _modelInstance = value;
> >> }
>
> >> *#2 ApplicationModelAwareCommandFactory Class*
>
> >> *Same issue as #1 exist here*
>
> >> *public function createCommand(clazz:Class):ICommand { …}*
>
> >> *There are 2 interfaces defined for Icommand as below
>
> >> 1.org.springextensions.actionscript.mvcs.command.ICommand
> >> 2.com.adobe.cairngorm.commands.ICommand*
>
> >> I knew "*com.adobe.cairngorm.commands.ICommand*" is correct, still it
> >> would be nice to add a comment to use the correct interface. Otherwise
> >> people might import wrong interface and get run-time Flash Player Exception.
>
> >> Regards,
>
> >> *Santosh Kumar
> >> Senior UI developer
> >> Plateau Systems*
> bin-release.zip
> 2073KViewDownload
>
> SpringProject.zip
> 343KViewDownload