Mercurial > pub > Impl
comparison lib/IMPL/Config/Container.pm @ 407:c6e90e02dd17 ref20150831
renamed Lib->lib
| author | cin | 
|---|---|
| date | Fri, 04 Sep 2015 19:40:23 +0300 | 
| parents | |
| children | 30e8c6a74937 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 406:f23fcb19d3c1 | 407:c6e90e02dd17 | 
|---|---|
| 1 package IMPL::Config::Container; | |
| 2 | |
| 3 1; | |
| 4 | |
| 5 __END__ | |
| 6 | |
| 7 =pod | |
| 8 | |
| 9 =head1 NAME | |
| 10 | |
| 11 C<IMPL::Config::Container> - dependency injection container | |
| 12 | |
| 13 =head1 SYNOPSIS | |
| 14 | |
| 15 =head2 METHODS | |
| 16 | |
| 17 =head3 GetService($serviceId) | |
| 18 | |
| 19 =over | |
| 20 | |
| 21 =item * $serviceId | |
| 22 | |
| 23 A string indetifier of the service, it can be in two forms: class name or service name, | |
| 24 for the class name it should be prefixed with C<@>, for example: C<@Foo::Bar>. | |
| 25 | |
| 26 =back | |
| 27 | |
| 28 The activation container maintains two maps, one for classes and the other for names. | |
| 29 The first one is useful when we searching for an implementation the second one when | |
| 30 we need a particular service. | |
| 31 | |
| 32 =head3 RegisterService($descriptor) | |
| 33 | |
| 34 =cut | 
