Tomas Doran > Catalyst-Model-Adaptor-0.10 > Catalyst::Model::Factory::PerRequest

Download:
Catalyst-Model-Adaptor-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View/Report Bugs
Module Version: 0.10   Source  

NAME ^

Catalyst::Model::Factory::PerRequest - use a plain class as a Catalyst model, instantiating it once per Catalyst request

SYNOPSIS ^

This module works just like Catalyst::Model::Factory, except that a fresh instance of your adapted class is once per Catalyst request, not every time you ask for the object via $c->model.

CUSTOMIZING ^

You can customize your subclass just like Catalyst::Model::Adaptor. Instead of $app, though, you'll get $c, the current request context.

METHODS ^

These methods are called by Catalyst, not by you:

COMPONENT

Load your class

ACCEPT_CONTEXT

Create an instance of your class and return it.

SEE ALSO ^

For all the critical documentation, see Catalyst::Model::Adaptor.

syntax highlighting: