GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  IOC::VISITOR::SERVICELOCATOR (3)

.ds Aq ’

NAME

IOC::Visitor::ServiceLocator - Service locator Visitor for the IOC::Container hierarchies

CONTENTS

SYNOPSIS



  use IOC::Visitor::ServiceLocator;

  # given a $container, ...

  # find services within $container
  my $visitor = IOC::Visitor::ServiceLocator->new(connection);

  # find services relative to $container
  my $visitor = IOC::Visitor::ServiceLocator->new(../connection);
 
  # find services from $containers root 
  my $visitor = IOC::Visitor::ServiceLocator->new(/database/connection);
 
  $container->accept($visitor);



DESCRIPTION

This is a IOC::Visitor object, used by the IOC::Container’s find method to locate a service using a path syntax.



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



METHODS

<B>new ($path)B> Creates a new instance which will find Services at a given $path. If no $path is given, than an <B>IOC::InsufficientArgumentsB> exception is thrown.
<B>visit ($container)B> Given a $container, the invocant will attempt to locate the service at the $path (given to the constuctor) from within the $container.

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 <B>Devel::CoverB> 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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 IOC::VISITOR::SERVICELOCATOR (3) 2007-04-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.