Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Dev

Catalyst::Engine vs action_hash (path)

 

 

Catalyst dev RSS feed   Index | Next | Previous | View Threaded


leonardo at ruoso

Feb 23, 2012, 8:12 AM

Post #1 of 3 (525 views)
Permalink
Catalyst::Engine vs action_hash (path)

Hello,

About action_hash deprecated.

How a Catalyst::Engine should get the path declared by the application
to publish them at startup as Engine::XMPP2 did using action_hash?

Thanks,
--
Leonardo Ruoso <leonardo [at] ruoso>
(11) 2368-2228 - (11) 3522-9612
http://leonardo.ruoso.com



_______________________________________________
Catalyst-dev mailing list
Catalyst-dev [at] lists
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev


leonardo at ruoso

Feb 27, 2012, 11:01 AM

Post #2 of 3 (491 views)
Permalink
Re: Catalyst::Engine vs action_hash (path) [In reply to]

Em Qui, 2012-02-23 às 14:12 -0200, Leonardo Ruoso escreveu:
> Hello,
>
> About action_hash deprecated.
>
> How a Catalyst::Engine should get the path declared by the application
> to publish them at startup as Engine::XMPP2 did using action_hash?

Also I'd like to learn from you if Catalyst::Engine::XMPP2 should be
changed to become something like Plack::Handler::XMPP or whatever you
recommend to conform PSGI?

> Thanks,

--
Leonardo Ruoso <leonardo [at] ruoso>
(11) 2368-2228 - (11) 3522-9612
http://leonardo.ruoso.com


_______________________________________________
Catalyst-dev mailing list
Catalyst-dev [at] lists
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev


daniel at ruoso

Feb 27, 2012, 6:02 PM

Post #3 of 3 (492 views)
Permalink
Re: Re: Catalyst::Engine vs action_hash (path) [In reply to]

> Em Qui, 2012-02-23 às 14:12 -0200, Leonardo Ruoso escreveu:
>> How a Catalyst::Engine should get the path declared by the application
>> to publish them at startup as Engine::XMPP2 did using action_hash?

To give a bit more context...

The Catalyst::Engine::XMPP2 module provides a semantical mapping
between HTTP and XMPP so that you can implement XMPP applications
using Catalyst.

There is a difference, tho. Unlike HTTP, a XMPP node needs to publish
all of its resources to the XMPP server, otherwise the message cannot
be delivered.

That being said, what C::E::XMPP2 does now is peek into action_hash to
list the publicly-visible paths provided by the application and
register those as resources with the xmpp server.

The current alternatives would be -- it seems:

1) The engine would require a configuration of all the resources to
register -- kind of cumbersome, since this would be a separate list
from the declared actions, but would comply with the new architecture.

2) Some other (I don't really know) way for the engine to discover the
publicly-available paths so that the engine can properly register
those in the xmpp server.

3) Just use the private method _action_hash and accept that this is an
unusual engine that will take some shortcuts.

What do you think?

daniel

_______________________________________________
Catalyst-dev mailing list
Catalyst-dev [at] lists
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev

Catalyst dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.