From 68536f36971c101150ec35d44bd445355ffd0384 Mon Sep 17 00:00:00 2001 From: Ralph Straubs Date: Fri, 2 Jun 2017 11:10:04 -0500 Subject: 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 --- .../openecomp/policy/drools/persistence/PersistenceFeature.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'policy-persistence') diff --git a/policy-persistence/src/main/java/org/openecomp/policy/drools/persistence/PersistenceFeature.java b/policy-persistence/src/main/java/org/openecomp/policy/drools/persistence/PersistenceFeature.java index 3883acab..4d9c08a0 100644 --- a/policy-persistence/src/main/java/org/openecomp/policy/drools/persistence/PersistenceFeature.java +++ b/policy-persistence/src/main/java/org/openecomp/policy/drools/persistence/PersistenceFeature.java @@ -204,15 +204,6 @@ public class PersistenceFeature implements PolicySessionFeatureAPI, PolicyEngine getContainerAdjunct(policySession.getPolicyContainer()) .destroyKieSession(); } - - /** - * {@inheritDoc} - */ - @Override - public boolean isPersistenceEnabled() - { - return(!persistenceDisabled); - } /** * {@inheritDoc} -- cgit 1.2.3-korg