Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
MK: Thrivepk module
Browse files Browse the repository at this point in the history
  • Loading branch information
Maimoona Kausar committed Feb 26, 2017
1 parent d4bd74f commit 6c57195
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 0 deletions.
96 changes: 96 additions & 0 deletions opensrp-thrivepk/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.opensrp</groupId>
<artifactId>opensrp</artifactId>
<version>0.1-SNAPSHOT</version>
</parent>
<artifactId>opensrp-thrivepk</artifactId>
<name>opensrp-thrivepk</name>
<url>http://github.com/OpenSRP/opensrp-server</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<main.basedir>${project.basedir}/..</main.basedir>
</properties>
<build>
<resources>
<resource>
<directory>../assets/config</directory>
</resource>
<resource>
<directory>../build</directory>
<filtering>true</filtering>
<includes>
<include>maven.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources/lists</directory>
<targetPath>org/opensrp/register/thrivepk</targetPath>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>

<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.opensrp</groupId>
<artifactId>opensrp-form</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.opensrp</groupId>
<artifactId>opensrp-core</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.8.5</version>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>1.4.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId>
<version>1.4.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.motechproject</groupId>
<artifactId>motech-testing-utils</artifactId>
<version>${motech.version}</version>
<scope>test</scope>
</dependency>

</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<import resource="classpath:applicationScheduler.xml"/>
<import resource="classpath:applicationPlatformServerAPI.xml"/>
<import resource="classpath:applicationSmsHttp.xml"/>
<import resource="classpath:applicationSmsAPI.xml"/>
<import resource="classpath:applicationSchedulerTrackingAPI.xml"/>

<context:property-placeholder location="classpath*:maven.properties"/>

<util:properties id="opensrp" location="classpath:/opensrp.properties"/>

<context:annotation-config/>
<context:component-scan base-package="org.opensrp.form"/>
<context:component-scan base-package="org.opensrp.register"/>
<context:component-scan base-package="org.opensrp.repository"/>
<context:component-scan base-package="org.opensrp.service"/>

<bean id="opensrpDatabaseConnector" class="org.ektorp.impl.StdCouchDbConnector">
<constructor-arg value="${couchdb.db.opensrp}"/>
<constructor-arg ref="couchDbInstance"/>
</bean>

<bean id="thrivepkDatabaseConnector" class="org.ektorp.impl.StdCouchDbConnector">
<constructor-arg value="thrivepk"/>
<constructor-arg ref="couchDbInstance"/>
</bean>
<bean id="statsdAgent" class="org.motechproject.metrics.impl.LoggingAgentBackendImpl"/>
<bean id="opensrpErrorTraceDatabaseConnector" class="org.ektorp.impl.StdCouchDbConnector">
<constructor-arg value="${couchdb.db.error}"/>
<constructor-arg ref="couchDbInstance"/>
</bean>

</beans>
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

<context:property-placeholder location="classpath*:maven.properties,classpath*:activemq.properties"/>

<import resource="classpath:applicationContext-opensrp-form.xml"/>

<!-- <import resource="classpath:applicationPlatformCommonAPI.xml"/>
<import resource="classpath:applicationScheduler.xml"/>
<import resource="classpath:applicationPlatformServerAPI.xml"/>
<import resource="classpath:applicationSmsHttp.xml"/>
<import resource="classpath:applicationSmsAPI.xml"/>
<import resource="classpath:applicationSchedulerTrackingAPI.xml"/> -->

<context:annotation-config/>
<context:component-scan base-package="org.opensrp.form"/>
<context:component-scan base-package="org.opensrp.register"/>
<context:component-scan base-package="org.opensrp.repository"/>
<context:component-scan base-package="org.opensrp.form"/>
<context:component-scan base-package="org.opensrp.connector"/>
<context:component-scan base-package="org.opensrp.service">
<context:exclude-filter expression="org.opensrp.service.formSubmission.*" type="regex" />
</context:component-scan>

<bean class="org.opensrp.service.formSubmission.FormEntityConverter" />

<bean id="opensrpDatabaseConnector" class="org.ektorp.impl.StdCouchDbConnector">
<constructor-arg value="${couchdb.db.opensrp}"/>
<constructor-arg ref="couchDbInstance"/>
</bean>

<bean id="thrivepkDatabaseConnector" class="org.ektorp.impl.StdCouchDbConnector">
<constructor-arg value="thrivepk"/>
<constructor-arg ref="couchDbInstance"/>
</bean>

<bean id="opensrpErrorTraceDatabaseConnector" class="org.ektorp.impl.StdCouchDbConnector">
<constructor-arg value="${couchdb.db.error}"/>
<constructor-arg ref="couchDbInstance"/>
</bean>
</beans>

0 comments on commit 6c57195

Please sign in to comment.