diff options
author | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-04-16 12:34:29 -0400 |
---|---|---|
committer | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-04-16 12:34:29 -0400 |
commit | cca8e17ff1487366072aac8720058fe1465d0ea3 (patch) | |
tree | f6be3f46a24c0efae016148031138aab0ec577d1 /aai-service | |
parent | dd8b9956c7f3a10b141e26ccd8b14c79ddb619a9 (diff) |
Fix properties precedence
Updated aai-service so that /aaiclient.properties
has highest precedence, over any properties bundled within
the jar / karaf container.
Change-Id: I5289889d5afc7fa5ae9deac92b5826e2087a329d
Issue-ID: CCSDK-243
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Diffstat (limited to 'aai-service')
-rwxr-xr-x | aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceProvider.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceProvider.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceProvider.java index 3450ff74..baa86c44 100755 --- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceProvider.java +++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceProvider.java @@ -71,20 +71,20 @@ public class AAIServiceProvider implements UtilsProvider { * Set up the prioritized list of strategies for resolving dblib properties files. */ public AAIServiceProvider() { + dblibPropertiesFileResolvers.add(new SdncConfigEnvVarFileResolver( + "Using property file (1) from environment variable" + )); dblibPropertiesFileResolvers.add(new JREFileResolver( - "Using property file (1) from JRE argument", AAIServiceProvider.class + "Using property file (2) from JRE argument", AAIServiceProvider.class )); dblibPropertiesFileResolvers.add(new BundleContextFileResolver( - "Using property file (1) from JRE argument", AAIServiceProvider.class - )); - dblibPropertiesFileResolvers.add(new SdncConfigEnvVarFileResolver( - "Using property file (2) from environment variable" + "Using property file (3) from JRE argument", AAIServiceProvider.class )); dblibPropertiesFileResolvers.add(new KarafRootFileResolver( "Using property file (4) from karaf root", this )); dblibPropertiesFileResolvers.add(new CoreDefaultFileResolver( - "Using property file (3) from default directory" + "Using property file (5) from default directory" )); // determines properties file as according to the priority described in the class header comment |