annotate Lib/IMPL/Config/Container.pm @ 404:9ef75f2029be default

sync
author cin
date Fri, 28 Aug 2015 19:54:53 +0300
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
404
cin
parents:
diff changeset
1 package IMPL::Config::Container;
cin
parents:
diff changeset
2
cin
parents:
diff changeset
3 1;
cin
parents:
diff changeset
4
cin
parents:
diff changeset
5 __END__
cin
parents:
diff changeset
6
cin
parents:
diff changeset
7 =pod
cin
parents:
diff changeset
8
cin
parents:
diff changeset
9 =head1 NAME
cin
parents:
diff changeset
10
cin
parents:
diff changeset
11 C<IMPL::Config::Container> - dependency injection container
cin
parents:
diff changeset
12
cin
parents:
diff changeset
13 =head1 SYNOPSIS
cin
parents:
diff changeset
14
cin
parents:
diff changeset
15 =head2 METHODS
cin
parents:
diff changeset
16
cin
parents:
diff changeset
17 =head3 GetService($serviceId)
cin
parents:
diff changeset
18
cin
parents:
diff changeset
19 =over
cin
parents:
diff changeset
20
cin
parents:
diff changeset
21 =item * $serviceId
cin
parents:
diff changeset
22
cin
parents:
diff changeset
23 A string indetifier of the service, it can be in two forms: class name or service name,
cin
parents:
diff changeset
24 for the class name it should be prefixed with C<@>, for example: C<@Foo::Bar>.
cin
parents:
diff changeset
25
cin
parents:
diff changeset
26 =back
cin
parents:
diff changeset
27
cin
parents:
diff changeset
28 The activation container maintains two maps, one for classes and the other for names.
cin
parents:
diff changeset
29 The first one is useful when we searching for an implementation the second one when
cin
parents:
diff changeset
30 we need a particular service.
cin
parents:
diff changeset
31
cin
parents:
diff changeset
32 =head3 RegisterService($descriptor)
cin
parents:
diff changeset
33
cin
parents:
diff changeset
34 =cut