.classpath
.settings/
+.vscode
+.factorypath
# Target dirs in all projects
**/target-ide/*
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" output="target/classes" path="src/main/java">
- <attributes>
- <attribute name="optional" value="true"/>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry excluding="**" kind="src" output="target/classes" path="opt/etc/config">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="src" output="target/test-classes" path="src/test/java">
- <attributes>
- <attribute name="optional" value="true"/>
- <attribute name="maven.pomderived" value="true"/>
- <attribute name="test" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- <attribute name="test" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="src" path=".apt_generated">
- <attributes>
- <attribute name="optional" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="src" output="target/test-classes" path=".apt_generated_tests">
- <attributes>
- <attribute name="optional" value="true"/>
- <attribute name="test" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="output" path="target/classes"/>
-</classpath>
+++ /dev/null
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.processAnnotations=enabled
-org.eclipse.jdt.core.compiler.release=disabled
-org.eclipse.jdt.core.compiler.source=1.8
<artifactId>sliPluginUtils-provider</artifactId>
<version>${ccsdk.sli.core.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.onap.ccsdk.sli.adaptors</groupId>
+ <artifactId>sql-resource-provider</artifactId>
+ <version>${ccsdk.sli.adaptors.version}</version>
+ </dependency>
<dependency>
<groupId>org.onap.ccsdk.sli.plugins</groupId>
<artifactId>restapi-call-node-provider</artifactId>
import java.io.IOException;\r
import java.util.List;\r
import java.util.Properties;\r
+\r
+import org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource;\r
import org.onap.ccsdk.sli.core.sli.ConfigurationException;\r
import org.onap.ccsdk.sli.core.sli.SvcLogicJavaPlugin;\r
import org.onap.ccsdk.sli.core.sli.SvcLogicLoader;\r
import org.onap.ccsdk.sli.core.sli.SvcLogicRecorder;\r
+import org.onap.ccsdk.sli.core.sli.SvcLogicResource;\r
import org.onap.ccsdk.sli.core.sli.SvcLogicStore;\r
import org.onap.ccsdk.sli.core.sli.SvcLogicStoreFactory;\r
import org.onap.ccsdk.sli.core.sli.provider.base.HashMapResolver;\r
@Autowired\r
List<SvcLogicJavaPlugin> plugins;\r
\r
+ @Autowired\r
+ List<SvcLogicResource> svcLogicResources;\r
+\r
@Bean\r
public SvcLogicStore getStore() throws Exception {\r
SvcLogicPropertiesProvider propProvider = new SvcLogicPropertiesProvider() {\r
resolver.addSvcLogicSvcLogicJavaPlugin(plugin.getClass().getName(), plugin);\r
\r
}\r
+ for (SvcLogicResource svcLogicResource : svcLogicResources) {\r
+ resolver.addSvcLogicResource(svcLogicResource.getClass().getName(), svcLogicResource);\r
+ }\r
+\r
return new SvcLogicServiceImplBase(getStore(), resolver);\r
}\r
\r
return new PropertiesNode();\r
}\r
\r
+ @Bean\r
+ public SqlResource sqlResource() {\r
+ return new SqlResource();\r
+ }\r
+ \r
+\r
}\r