Add bean configurator 65/79665/3
authorJim Hahn <jrh3@att.com>
Mon, 4 Mar 2019 21:03:26 +0000 (16:03 -0500)
committerJim Hahn <jrh3@att.com>
Tue, 5 Mar 2019 01:12:27 +0000 (20:12 -0500)
commitfabde091ed5589552885265f8ed91bc1d72a9a6e
tree0ac567b3b063e4be61599b3fdeca95a097bd7c80
parente7ad7f65ed1c66b6ec2af6d415a386c931bfe20c
Add bean configurator

Refactored PropertyConfiguration, but left the original class alone
until references to it have been removed from other policy repos.
Split the Property annotation out into its own file.  Cloned the
remaining code into BeanConfigurator, modifying its behavior so that,
instead of operating on its own subclass, it operates on a provided bean.
Also added an ability to copy the bean's fields to a Properties object.

Updated license dates.

Removed unneeded argument from functional interface.
Added comment about always checking default values.
Updated a few comments.

Change-Id: Iff36fd0524032d7630f9ee08f0eef7b05de100d1
Issue-ID: POLICY-1444
Signed-off-by: Jim Hahn <jrh3@att.com>
utils/src/main/java/org/onap/policy/common/utils/properties/BeanConfigurator.java [new file with mode: 0644]
utils/src/main/java/org/onap/policy/common/utils/properties/Property.java [new file with mode: 0644]
utils/src/test/java/org/onap/policy/common/utils/properties/BeanConfiguratorTest.java [new file with mode: 0644]