No description
- Perl 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| lib/CatalystX | ||
| t | ||
| .gitignore | ||
| Changes | ||
| Makefile.PL | ||
| README | ||
NAME
CatalystX::Anonymous - Turn your catalyst app into an anonymous class
DESCRIPTION
I really wanted to run multiple MojoMojo applications at the same time,
and this module will hopefully make that possible. The problem is that
if you try to run multiple Catalyst applications from the same
namespace, the class attributes will overwrite each other, making it
impossible.
This module takes all the class attributes from your application and
moves them to a anonymous class, generated using Class::MOP. Afterwards
the original Application class is destroyed, making it possible to set
up the same application again, with new enviroment variables and
arguments to "Catalyst::setup()".
This is currently experimental and a work in progress.
NOTE: Running multiple catalyst applications is possible using fcgi, but
I think it would be cool to be aple to start them using mod_perl or
plack.
SYNOPSIS
CatalystX::Anonymous
->new(app_name => 'MyCatalyst::WebApp') # construct
->app # fetch application from attribute
->run(@args); # call catalyst method
ATTRIBUTES
app_name
$str = $self->app_name;
The class name of your catalyst application
setup_arguments
$array_ref = $self->setup_arguments;
List of arguments to "YourApp::setup()", which normally would be
Catalyst::setup() in your class definition.
app
$app_object = $self->app;
$app_meta_object = $self->app_meta;
Return an object constructed from the anonymous application meta class.
COPYRIGHT & LICENSE
Copyright 2007 Jan Henning Thorsen, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
AUTHOR
Jan Henning Thorsen, "<jhthorsen at cpan.org>"