NAME

IOC::Visitor::SearchForService - Visitor for searching a IOC::Container hierarchy

SYNOPSIS

use IOC::Visitor::SearchForService;

DESCRIPTION

This is a IOC::Visitor object used for searching a IOC::Container hierarchy.

       +------------------+
       | <<IOC::Visitor>> |
       +------------------+
                |
                ^
                |
+--------------------------------+
| IOC::Visitor::SearchForService |
+--------------------------------+

METHODS

new ($name)

Creates a new instance which will search for a Service at a given $name. If no $name is given, than an IOC::InsufficientArguments exception is thrown.

visit ($container)

Given a $container, the invocant will attempt to locate the service with the $name (given to the constuctor) from within the $container's hierarchy.

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

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.