407
|
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 |