[Catalyst-dev] RFC: Catalyst::Engine::Embeddable / Catalyst::Model::EmbeddedCat

Matt S Trout dbix-class at trout.me.uk
Sun Dec 16 18:11:46 GMT 2007


On Thu, Dec 06, 2007 at 06:22:42PM +0000, Daniel Ruoso wrote:
> Hi,
> 
> I'm working towards the implementation of a Portlet[1] development
> framework using Perl and Catalyst. My next steps are related to how to
> implement the Container[2] application, which will handle a set of
> portlets.
> 
> In this path, I'm planning to do that writing the container application
> using Catalyst::Controller::SOAP, as to talk WSRP, and do a WSRP-HTTP[3]
> mapping to talk to the "inner" application.
> 
> The thing is that I didn't want to lose the Catalyst features for any of
> them, I'd like to have the Container application as a full-featured
> catalyst application and the portlets as other full-featured
> applications (including support to different dispatches and so on). That
> way, I'm working on another paper[4] where I try to stablish how this
> can be implemented in Catalyst. In the end I got the following idea:
> 
>       * Implement a new catalyst engine, which would simply provide an
>         OO interface to the application, receiving a HTTP::Request
>         object and returning a HTTP::Reponse object.

Why not just make the Catalyst::Request/Response objects directly like I do
in Plugin::SubRequest?

>       * Implement a model class, which would map to one of this embedded
>         applications.

We definitely want this. Please when you write it bear in mind the extra
features that'll be possible once the application/context shift comes out
in 5.80 - you may be mapping to >1 instance of the same application with
different config (e.g. N instances of a blog app for different blogs, to
pick a really lame example :)

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the Catalyst-dev mailing list