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


IOC documentation  | view source Contained in the IOC distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  use IOC::Visitor::SearchForContainer;

DESCRIPTION

Top

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

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

METHODS

Top

new ($name)

Creates a new instance which will search for a Container 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 container with the $name (given to the constuctor) from within the $container's hierarchy.

TO DO

Top

Work on the documentation

BUGS

Top

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

Top

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

SEE ALSO

Top

AUTHOR

Top

stevan little, <stevan@iinteractive.com>

COPYRIGHT AND LICENSE

Top


IOC documentation  | view source Contained in the IOC distribution.