Stevan Little > IOC-0.29 > IOC::Service::Prototype::ConstructorInjection

Download:
IOC-0.29.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

IOC::Service::Prototype::ConstructorInjection - An IOC Service object which returns a prototype instance

SYNOPSIS ^

  use IOC::Service::Prototype::ConstructorInjection;

DESCRIPTION ^

This class essentially can be used just like IOC::Service::ConsturctorInjection, the only difference is that it will return a new instance of the component each time rather than a singleton instance.

                        +--------------+
                        | IOC::Service |
                        +--------------+
                                |
                                ^
                                |
               +----------------+----------------+
               |                                 |
   +-------------------------+  +------------------------------------+
   | IOC::Service::Prototype |  | IOC::Service::ConstructorInjection |
   +-------------------------+  +------------------------------------+
               |                                 |   
               +----------------+----------------+
                                |
                                ^
                                |
         +-----------------------------------------------+ 
         | IOC::Service::Prototype::ConstructorInjection |
         +-----------------------------------------------+

TO DO ^

Work on the documentation

BUGS ^

None that I am aware of. Of course, if you find a bug, let me know, and I will be sure to fix it.

CODE COVERAGE ^

I use Devel::Cover to test the code coverage of my tests, see the CODE COVERAGE section of IOC for more information.

SEE ALSO ^

Prototype-style components are supported by the Spring Framework.

http://www.springframework.com

Non-Prototype-style Constructor Injection in the PicoContainer is explained on this page

http://docs.codehaus.org/display/PICO/Constructor+Injection

AUTHOR ^

stevan little, <stevan@iinteractive.com>

COPYRIGHT AND LICENSE ^

Copyright 2004-2007 by Infinity Interactive, Inc.

http://www.iinteractive.com

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: