Add ApiUtils to facilitate looping over features 12/93512/2
authorJim Hahn <jrh3@att.com>
Tue, 6 Aug 2019 16:17:29 +0000 (12:17 -0400)
committerJim Hahn <jrh3@att.com>
Wed, 14 Aug 2019 21:28:30 +0000 (17:28 -0400)
commit98a4da643c738a4246cc4cc4aa9c9f21ae47cff8
tree758aed5947d4c49b79eb88c0ed1c0daaf5376682
parentd8930c7ea6f302f4364512867583510cea47b52a
Add ApiUtils to facilitate looping over features

A number of places in the code (common & drools-pdp) loop over
features, giving each provider a chance to act on something.
Created a common method in a new ApiUtils class to faciliate
it.
Renamed to FeatureApiUtils per review comment.

Change-Id: I0c2cf0f33854cb5b6921b394f64de498a6234909
Issue-ID: POLICY-1968
Signed-off-by: Jim Hahn <jrh3@att.com>
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/features/NetLoggerFeatureProviders.java
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/utils/NetLoggerUtil.java
utils/src/main/java/org/onap/policy/common/utils/services/FeatureApiUtils.java [new file with mode: 0644]
utils/src/test/java/org/onap/policy/common/utils/services/FeatureApiUtilsTest.java [new file with mode: 0644]