Add wrapper for ServiceManager 53/82853/3
authorJim Hahn <jrh3@att.com>
Wed, 20 Mar 2019 20:40:02 +0000 (16:40 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 20 Mar 2019 20:57:04 +0000 (16:57 -0400)
commit6fb97d3373232c16823f374d637533d36ac1049c
treebc1c8a93bd01e14fddadd43cba8e4a5383815f47
parent232bd030951905cb5ad2f1ddad5400a005fe40c6
Add wrapper for ServiceManager

This makes it easier for a class to implement a Startable interface,
using a ServiceManager internally, while preventing other classes from
adding services to the manager (as would be the case if the class were
simply subclassed from the ServiceManager).

Changed the field name to be more descriptive.

Fixed a typo in a comment.

Change-Id: I1bed6291114d21c20d2324cbda81518bf9183139
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
utils/src/main/java/org/onap/policy/common/utils/services/ServiceManagerContainer.java [new file with mode: 0644]
utils/src/test/java/org/onap/policy/common/utils/services/ServiceManagerContainerTest.java [new file with mode: 0644]