Skip to main content
Participating Frequently
September 11, 2008
Question

Extension points at compiler

  • September 11, 2008
  • 3 replies
  • 581 views
Hi folks,

I need to add some extra validation at a custom metadata.

Let me start from beginning.

Swiz framework (http://code.google.com/p/swizframework/) uses metadatas to made IoC.

One metadata is this:
[Autowire(bean="helloController")]

But, if I made any miss-spell, like [Autowire(bean="heloControler")] (forgot the second L) it will produce errors at runtime.

What I wanna is to create a validation, to validate this at compile time.

I saw on flex-sdk this BindableExtension, who "changes" my actionscript code to make it Bindable. Is there any way to register one extension at flex-config.xml or using a command line parameter?

BTW, is extension the right path to follow?

VELO
This topic has been closed for replies.

3 replies

matt_chotin
Inspiring
September 11, 2008
We do have a feature request filed for the extension points. It's possibel that there is someone out there in the community looking into this, but I don't believe so right now. I was hoping to get this into Gumbo but we just don't have the time to do it ourselves.<br /><br />Matt<br /><br /><br />On 9/11/08 1:27 PM, "Jono Spiro" <member@adobeforums.com> wrote:<br /><br />A new message was posted by Jono Spiro in<br /><br />Developers --<br /> Extension points at compiler<br /><br /><br />Afraid not. Extensions must be compiled in, so you will need your own branch of the compiler - look at WebTierAPI.getCompilers() to see how they get hooked in. Also ImplementationCompiler's constructor.<br /><br />It's kind of a black art, but there's tons of existing code to compare against. The idea is simple: You get to hook into the compile process once per phase per file - e.g. parse1(), analyze1(), etc... You get a chance to modify the syntax trees, though if possible don't.<br /><br />- Jono<br /><br /><br />From: Marvin Froeder [mailto:member@adobeforums.com]<br />Sent: Thursday, September 11, 2008 7:35 AM<br />To: flexsdk-dev@adobeforums.com<br />Subject: Re: Extension points at compiler<br /><br />A new message was posted by Marvin Froeder in<br /><br />Developers --<br /> Extension points at compiler<br /><br />Is there any documentation available about how to write extensions?<br /><br />VELO<br />________________________________<br />View/reply at Extension points at compiler <a href=http://www.adobeforums.com/webx?13@@.59b674d1/0><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b674d1!folder=.3c060fa3> form to cancel your email subscription.<br /><br /><br />________________________________<br />View/reply at Extension points at compiler <a href=http://www.adobeforums.com/webx?13@@.59b674d1/1><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b674d1!folder=.3c060fa3> form to cancel your email subscription.
Participating Frequently
September 11, 2008
<div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Afraid not. Extensions must be compiled in, so you will need<br />your own branch of the compiler &#8211; look at WebTierAPI.getCompilers() to<br />see how they get hooked in. Also ImplementationCompiler&#8217;s constructor.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>It&#8217;s kind of a black art, but there&#8217;s tons of<br />existing code to compare against. The idea is simple: You get to hook into the<br />compile process once per phase per file &#8211; e.g. parse1(), analyze1(), etc&#8230;<br />You get a chance to modify the syntax trees, though if possible don&#8217;t.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>- Jono<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Marvin Froeder<br />[mailto:member@adobeforums.com] <br><br /><b>Sent:</b> Thursday, September 11, 2008 7:35 AM<br><br /><b>To:</b> flexsdk-dev@adobeforums.com<br><br /><b>Subject:</b> Re: Extension points at compiler<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />Marvin Froeder in <br><br /><br><br /><b>Developers</b> --<br><br />  Extension points at compiler<br><br /><br><br />Is there any documentation available about how to write extensions? <br><br /><br><br />VELO <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b674d1/0">Extension points at<br />compiler</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b674d1!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>
Participating Frequently
September 11, 2008
Is there any documentation available about how to write extensions?

VELO