No description
This repository has been archived on 2026-08-22. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Henning Thorsen 43f4bf5d96 add TOOD inline
2010-01-05 22:38:48 +01:00
lib/CatalystX add TOOD inline 2010-01-05 22:38:48 +01:00
t add TOOD inline 2010-01-05 22:38:48 +01:00
.gitignore repo created 2010-01-02 17:31:29 +01:00
Changes renamed from Object to Anonymous 2010-01-03 01:50:20 +01:00
Makefile.PL add test for unloaded app 2010-01-03 01:54:17 +01:00
README add NOTE 2010-01-03 11:12:03 +01:00

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>"