Change 'policy-core' to support app persistence 15/4615/3
authorRalph Straubs <rs8887@att.com>
Fri, 2 Jun 2017 16:10:04 +0000 (11:10 -0500)
committerRalph Straubs <rs8887@att.com>
Fri, 2 Jun 2017 16:44:57 +0000 (11:44 -0500)
commit68536f36971c101150ec35d44bd445355ffd0384
tree19ad454a438395da3b2cafe85bedeaeb582e6ea1
parent2a78350806368ae9dd4f5e43f4652251adbb52e6
Change 'policy-core' to support app persistence

This includes the following:

1) A new hook method 'newPolicySession(PolicySession)' that is called after
   the session has been created and initialized

2) Support for "adjunct" objects in 'PolicySession'

3) Added 'try/catch' blocks around feature method invocations

4) Added 'default' methods to interface 'PolicySessionFeatureAPI'

5) Removed 'PolicySessionFeatureAPI.isPersistenceEnabled()'

Conflicts:

policy-core/src/main/java/org/openecomp/policy/drools/core/PolicySessionFeatureAPI.java

Change-Id: Ibc6d9eeacb6118d617e6c5ac53f6cef4c6ee1417
Signed-off-by: Ralph Straubs <rs8887@att.com>
policy-core/src/main/java/org/openecomp/policy/drools/core/PolicyContainer.java
policy-core/src/main/java/org/openecomp/policy/drools/core/PolicySession.java
policy-core/src/main/java/org/openecomp/policy/drools/core/PolicySessionFeatureAPI.java
policy-persistence/src/main/java/org/openecomp/policy/drools/persistence/PersistenceFeature.java