Rework the Spring starting order 01/22001/1
authorxg353y <xg353y@intl.att.com>
Fri, 3 Nov 2017 09:30:12 +0000 (10:30 +0100)
committerxg353y <xg353y@intl.att.com>
Fri, 3 Nov 2017 10:12:10 +0000 (11:12 +0100)
Change-Id: I30c930b0abc724a8da57657dfede940efa69aae0
Issue-ID: CLAMP-62
Signed-off-by: xg353y <xg353y@intl.att.com>
src/main/java/org/onap/clamp/clds/config/EncodedPasswordBasicDataSource.java

index e2a4725..3862a5a 100644 (file)
@@ -31,6 +31,7 @@ import java.security.GeneralSecurityException;
 import org.apache.commons.dbcp.BasicDataSource;
 import org.onap.clamp.clds.util.CryptoUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.DependsOn;
 import org.springframework.stereotype.Component;
 
 /**
@@ -39,6 +40,7 @@ import org.springframework.stereotype.Component;
  *
  */
 @Component("EncodedPasswordBasicDataSource")
+@DependsOn(value = { "CryptoUtils" })
 public class EncodedPasswordBasicDataSource extends BasicDataSource {
     protected static final EELFLogger logger        = EELFManager.getInstance()
             .getLogger(EncodedPasswordBasicDataSource.class);