[Arp] Muse
Jed Wood
jed at usableflash.com
Thu Oct 13 06:06:48 PDT 2005
Just throwing this out there, but would it not be possible to create
the files from PHP itself? Just seems a natural fit given the PHP
slant you've already got going.
-Jed
On Oct 13, 2005, at 2:16 AM, Christophe Herreman wrote:
> Hi guys,
>
> just wanted to inform you about Muse, a project I'm working on to
> generate code for different projects (ARP, AMFPHP, etc). It's
> written in
> C# for .NET 1.1. I already posted this on the OSFlash list, so here's
> the original message.
>
> ++++++++++++++++++++++++++++++++++++++++++
>
> I have been working on a tool that
> generates (stub) code for projects made with ARP and/or AMFPHP. The
> generated code is template based and can easily be modified.
>
> It currently creates:
> - a PHP DataSource to encapsulate the type of database you're using
> (currently only MySQL)
> - PHP DAO's (Data Access Objects)
> - PHP VO's (Value Objects)
> - PHP AMFPHP Services (1 per business entity)
> - AS2 ARP Commands to get/save/delete entities
> - AS2 VO's (Value Objects)
> - AS2 ARP Business Delegates
> - a AS2 ARP Service Locator
>
> To generate code:
> - start the tool and enter your MySQL database credentials
> - click "Connect", the database tables are shown in the checkboxlist
> - select the entities (tables) you want to generate
> - enter a package name
> - enter the Flash Remoting gateway URL
> - select the classes you want to generate
> - click "Generate"
>
> The code should now be created in an "output" folder in the same
> folder
> where you started the executable.
>
> Note that this is just a very basic idea. I have only started
> working on
> it Saturday (listening to Muse, hence the name) and wanted more of
> proof
> of concept before coding the whole tool. The generated code has not
> even
> been tested (!!!), I'm just wondering if people would be interested in
> such a tool.
>
> Feedback is welcome !
>
> Download: http://www.herrodius.com/upload/Muse_0.1.zip
>
> ++++++++++++++++++++++++++++++++++++++++++
>
>
> Some of the code it generates is hard-coded at the moment. I've
> been changing it since to be 100% template based. You can even
> create your own templates for a project based on Cairngorm (don't
> shoot me ARP'ers ;-)) for instance since you get a whole list of
> keywords you can use. Grant (ARP extension mastah!) has been asking
> about creating code from EJB's, but since have no background in
> that I can't answer now. We'll be looking into it.
>
> Again, any feedback is much appreciated !
>
> If this project is of any interest, maybe we can make it an OS one
> on OSFlash.
>
>
> regards,
> Christophe
>
>
>
>> Hi Chris,
>>
>> I agree with some of what the person said:
>>
>> We definitely need a way to generate a stub application. A python
>> script
>> perhaps. I thought someone had something like this already... or
>> was it
>> that Python 20 minute video I was watching recently?
>>
>> Commands are definitely reusable. Perhaps the use of viewRef as
>> the name
>> of the reference to the event source is overly limiting. There's no
>> reason why a command cannot invoke another command and set itself
>> up as
>> the event source by passing (this). The very reason Arp's commands
>> have
>> a reference to the event source is so that they can be reused.
>>
>> All the best,
>> Aral
>>
>> _______________________________________________
>> Arp mailing list
>> Arp at ariaware.com
>> http://ariaware.com/mailman/listinfo/arp_ariaware.com
>>
>>
>>
>>
>>
>
>
> _______________________________________________
> Arp mailing list
> Arp at ariaware.com
> http://ariaware.com/mailman/listinfo/arp_ariaware.com
>
More information about the Arp
mailing list