Skip to content

Commit 3490a5c

Browse files
committed
first commit
0 parents  commit 3490a5c

13 files changed

Lines changed: 532 additions & 0 deletions

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/target
2+
src/main/java/META-INF/MANIFEST.MF
3+
*.DS_Store
4+
/.externalToolBuilders/
5+
/.settings/
6+
.classpath
7+
bin/
8+
geppettoTmp/
9+
/bin/

.project

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.geppetto.datasources</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.jdt.core.javabuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.m2e.core.maven2Builder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>com.springsource.server.ide.facet.core.bundlenature</nature>
26+
<nature>org.eclipse.jdt.core.javanature</nature>
27+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
28+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
29+
<nature>org.eclipse.virgo.ide.facet.core.bundlenature</nature>
30+
</natures>
31+
</projectDescription>

.springBeans

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beansProjectDescription>
3+
<version>1</version>
4+
<pluginVersion><![CDATA[2.2.1.v200811281800]]></pluginVersion>
5+
<configSuffixes>
6+
<configSuffix><![CDATA[xml]]></configSuffix>
7+
</configSuffixes>
8+
<enableImports><![CDATA[false]]></enableImports>
9+
<configs>
10+
</configs>
11+
<configSets>
12+
</configSets>
13+
</beansProjectDescription>

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: java
2+
3+
install:
4+
- git clone https://github.com/openworm/org.geppetto.model.git -b development
5+
- cd org.geppetto.model
6+
- mvn install
7+
- cd ..
8+
- git clone https://github.com/openworm/org.geppetto.core.git -b $TRAVIS_BRANCH
9+
- cd org.geppetto.core
10+
- mvn install
11+
- cd ..
12+
13+
14+
15+
16+
17+
18+
19+

LICENSE

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2011, 2013 OpenWorm.
4+
http://openworm.org
5+
6+
All rights reserved. This program and the accompanying materials
7+
are made available under the terms of the MIT License
8+
which accompanies this distribution, and is available at
9+
http://opensource.org/licenses/MIT
10+
11+
Contributors:
12+
OpenWorm - http://openworm.org/people.html
13+
14+
Permission is hereby granted, free of charge, to any person obtaining a copy
15+
of this software and associated documentation files (the "Software"), to deal
16+
in the Software without restriction, including without limitation the rights
17+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18+
copies of the Software, and to permit persons to whom the Software is
19+
furnished to do so, subject to the following conditions:
20+
21+
The above copyright notice and this permission notice shall be included in all
22+
copies or substantial portions of the Software.
23+
24+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
28+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
29+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
30+
USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[![Build Status](https://travis-ci.org/openworm/org.geppetto.datasources.png?branch=master)](https://travis-ci.org/openworm/org.geppetto.datasources)
2+
3+
<p align="center">
4+
<img src="https://dl.dropboxusercontent.com/u/7538688/geppetto%20logo.png?dl=1" alt="Geppetto logo"/>
5+
</p>
6+
7+
# Geppetto Data Sources bundle
8+
9+
This Geppetto module contains a set of data source services which have the ability to drive programmatically
10+
the creation of a GeppettoModel as a result of queries.
11+
12+
For information about how this fits into [Geppetto](http://www.geppetto.org/) refer to the umbrella project [org.geppetto](https://github.com/openworm/org.geppetto) on GitHub.

pom.xml

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>org.geppetto</groupId>
6+
<artifactId>datasources</artifactId>
7+
<name>Geppetto Data Sources bundle</name>
8+
<version>0.2.8.1</version>
9+
<packaging>bundle</packaging>
10+
<properties>
11+
<spring.version>3.1.3.RELEASE</spring.version>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
</properties>
14+
<dependencies>
15+
16+
<dependency>
17+
<groupId>org.geppetto</groupId>
18+
<artifactId>core</artifactId>
19+
<version>${project.version}</version>
20+
</dependency>
21+
<dependency>
22+
<groupId>org.springframework</groupId>
23+
<artifactId>org.springframework.core</artifactId>
24+
<version>${spring.version}</version>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.springframework</groupId>
28+
<artifactId>org.springframework.beans</artifactId>
29+
<version>${spring.version}</version>
30+
</dependency>
31+
<dependency>
32+
<groupId>org.springframework</groupId>
33+
<artifactId>org.springframework.context</artifactId>
34+
<version>${spring.version}</version>
35+
</dependency>
36+
<!-- test dependencies -->
37+
<dependency>
38+
<groupId>org.junit</groupId>
39+
<artifactId>com.springsource.org.junit</artifactId>
40+
<version>4.5.0</version>
41+
<scope>test</scope>
42+
</dependency>
43+
<dependency>
44+
<groupId>org.springframework</groupId>
45+
<artifactId>org.springframework.spring-library</artifactId>
46+
<type>libd</type>
47+
<version>${spring.version}</version>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.springframework</groupId>
51+
<artifactId>spring-test</artifactId>
52+
<version>${spring.version}</version>
53+
</dependency>
54+
</dependencies>
55+
<repositories>
56+
<repository>
57+
<id>com.springsource.repository.bundles.release</id>
58+
<name>SpringSource Enterprise Bundle Repository - SpringSource Releases</name>
59+
<url>http://repository.springsource.com/maven/bundles/release</url>
60+
</repository>
61+
<repository>
62+
<id>com.springsource.repository.bundles.external</id>
63+
<name>SpringSource Enterprise Bundle Repository - External Releases</name>
64+
<url>http://repository.springsource.com/maven/bundles/external</url>
65+
</repository>
66+
<repository>
67+
<id>com.springsource.repository.libraries.release</id>
68+
<name>SpringSource Enterprise Bundle Repository - SpringSource Library Releases</name>
69+
<url>http://repository.springsource.com/maven/libraries/release</url>
70+
</repository>
71+
<repository>
72+
<id>com.springsource.repository.libraries.external</id>
73+
<name>SpringSource Enterprise Bundle Repository - External Library Releases</name>
74+
<url>http://repository.springsource.com/maven/libraries/external</url>
75+
</repository>
76+
<repository>
77+
<id>org.geppetto-mvn-repo</id>
78+
<url>https://raw.github.com/openworm/org.geppetto.maven/mvn-repo</url>
79+
<snapshots>
80+
<enabled>true</enabled>
81+
<updatePolicy>always</updatePolicy>
82+
</snapshots>
83+
</repository>
84+
</repositories>
85+
86+
<build>
87+
<plugins>
88+
<plugin>
89+
<groupId>org.apache.maven.plugins</groupId>
90+
<artifactId>maven-compiler-plugin</artifactId>
91+
<version>3.1</version>
92+
<configuration>
93+
<source>1.7</source>
94+
<target>1.7</target>
95+
</configuration>
96+
</plugin>
97+
<plugin>
98+
<groupId>org.apache.maven.plugins</groupId>
99+
<artifactId>maven-surefire-plugin</artifactId>
100+
<version>2.15</version>
101+
<configuration>
102+
<junitArtifactName>org.junit:com.springsource.org.junit</junitArtifactName>
103+
</configuration>
104+
</plugin>
105+
<plugin>
106+
<groupId>org.apache.felix</groupId>
107+
<artifactId>maven-bundle-plugin</artifactId>
108+
<version>2.3.7</version>
109+
<extensions>true</extensions>
110+
<configuration>
111+
<manifestLocation>src/main/java/META-INF</manifestLocation>
112+
<supportedProjectTypes>
113+
<supportedProjectType>jar</supportedProjectType>
114+
<supportedProjectType>bundle</supportedProjectType>
115+
</supportedProjectTypes>
116+
<instructions>
117+
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
118+
<Bundle-Version>${project.version}</Bundle-Version>
119+
<Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
120+
<Include-Resource>
121+
{maven-resources},META-INF/spring=src/main/java/META-INF/spring
122+
</Include-Resource>
123+
<Import-Package>
124+
org.geppetto.core.services,org.geppetto.core.features,org.aopalliance.aop,org.springframework.aop,,org.springframework.aop.scope,org.springframework.aop.framework,*
125+
</Import-Package>
126+
</instructions>
127+
</configuration>
128+
</plugin>
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-dependency-plugin</artifactId>
132+
<configuration>
133+
<outputDirectory>${project.build.outputDirectory}/lib</outputDirectory>
134+
<includeScope>runtime</includeScope>
135+
<excludeScope>provided</excludeScope>
136+
</configuration>
137+
<executions>
138+
<execution>
139+
<id>copy-dependencies</id>
140+
<phase>generate-resources</phase>
141+
<goals>
142+
<goal>copy-dependencies</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
</plugins>
148+
<pluginManagement>
149+
<plugins>
150+
<plugin>
151+
<groupId>org.eclipse.m2e</groupId>
152+
<artifactId>lifecycle-mapping</artifactId>
153+
<version>1.0.0</version>
154+
<configuration>
155+
<lifecycleMappingMetadata>
156+
<pluginExecutions>
157+
<pluginExecution>
158+
<pluginExecutionFilter>
159+
<groupId>org.apache.maven.plugins</groupId>
160+
<artifactId>maven-dependency-plugin</artifactId>
161+
<versionRange>[2.0,)</versionRange>
162+
<goals>
163+
<goal>copy-dependencies</goal>
164+
</goals>
165+
</pluginExecutionFilter>
166+
<action>
167+
<ignore />
168+
</action>
169+
</pluginExecution>
170+
</pluginExecutions>
171+
</lifecycleMappingMetadata>
172+
</configuration>
173+
</plugin>
174+
</plugins>
175+
</pluginManagement>
176+
</build>
177+
</project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4+
xsi:schemaLocation="http://www.springframework.org/schema/beans
5+
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
6+
http://www.springframework.org/schema/context
7+
http://www.springframework.org/schema/context/spring-context-3.1.xsd">
8+
9+
<!-- <bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>-->
10+
<!-- Instructs Spring to scan for internal service components to instantiate and configure -->
11+
<context:annotation-config/>
12+
<context:component-scan base-package="org.geppetto.datasources" />
13+
14+
15+
</beans>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:context="http://www.springframework.org/schema/context"
5+
xsi:schemaLocation="http://www.springframework.org/schema/beans
6+
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
7+
http://www.springframework.org/schema/context
8+
http://www.springframework.org/schema/context/spring-context-3.1.xsd">
9+
10+
<!-- <bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>-->
11+
<!-- Instructs Spring to scan for internal service components to instantiate and configure -->
12+
<context:annotation-config />
13+
<context:component-scan base-package="org.geppetto.datasources" />
14+
15+
</beans>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:osgi="http://www.springframework.org/schema/osgi"
5+
xmlns:aop="http://www.springframework.org/schema/aop"
6+
xsi:schemaLocation="http://www.springframework.org/schema/beans
7+
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
8+
http://www.springframework.org/schema/osgi
9+
http://www.springframework.org/schema/osgi/spring-osgi-1.2.xsd
10+
http://www.springframework.org/schema/aop
11+
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd">
12+
13+
14+
<osgi:service id="Neo4jDataSourceExporter" ref="neo4jDataSource"
15+
interface="org.geppetto.core.datasources.IDataSourceService">
16+
</osgi:service>
17+
<bean id="neo4jDataSource" scope="prototype" class="org.geppetto.datasources.Neo4jDataSourceService">
18+
<aop:scoped-proxy proxy-target-class="false"/>
19+
</bean>
20+
21+
22+
<bean id="eventListenerBean" class="org.geppetto.core.services.registry.ApplicationListenerBean" />
23+
24+
</beans>

0 commit comments

Comments
 (0)