Skip all fields in gson by default 42/77842/6
authorJim Hahn <jrh3@att.com>
Mon, 4 Feb 2019 23:19:15 +0000 (18:19 -0500)
committerJim Hahn <jrh3@att.com>
Tue, 5 Feb 2019 20:38:49 +0000 (15:38 -0500)
commit20f911459a62058b854d0379acb348b93b56ede5
treeedb1dc00c3594db59b5fcf0821c4b1a4300e4ae6
parentbda6bcb4f61cd4b42b216db9a9b2c7dcaa72997e
Skip all fields in gson by default

Created an exclusion strategy that will prevent gson from serializing
any fields within a class. The strategy must be registered to take
effect.
Uses lists to identify classes to be excluded when using gson with
the jackson default behavior.

Change-Id: I747fb1159846ad3000f69603f9b5d3f03bc8764f
Issue-ID: POLICY-1428
Signed-off-by: Jim Hahn <jrh3@att.com>
utils/src/main/java/org/onap/policy/common/utils/gson/JacksonExclusionStrategy.java [new file with mode: 0644]
utils/src/test/java/org/onap/policy/common/utils/gson/JacksonExclusionStrategyTest.java [new file with mode: 0644]