Skip to content

Commit

Permalink
Fix module dependency
Browse files Browse the repository at this point in the history
Fix module declaration.
  • Loading branch information
SPalominos committed Jun 2, 2016
2 parents 20df446 + 573fb7b commit 85a088f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Activator implements BundleActivator {
* @throws Exception
*/
@Override
public void start(BundleContext bc) throws Exception {
public void start(BundleContext bc) throws Exception {
bc.registerService(DriverFunction.class, new DBFDriverFunction(), null);
bc.registerService(DriverFunction.class, new SHPDriverFunction(), null);
bc.registerService(DriverFunction.class, new GPXDriverFunction(), null);
Expand Down
6 changes: 3 additions & 3 deletions h2gis-functions-osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>h2gis-sfs</artifactId>
<artifactId>h2gis-functions</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down Expand Up @@ -56,8 +56,8 @@
<extensions>true</extensions>
<configuration>
<instructions>
<Private-Package>org.h2gis.sfs.osgi</Private-Package>
<Bundle-Activator>org.h2gis.sfs.osgi.Activator</Bundle-Activator>
<Private-Package>org.h2gis.functions.osgi</Private-Package>
<Bundle-Activator>org.h2gis.functions.osgi.Activator</Bundle-Activator>
<Bundle-Vendor>CNRS</Bundle-Vendor>
<Bundle-Category>JDBC</Bundle-Category>
</instructions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.osgi.util.tracker.ServiceTracker;

import javax.sql.DataSource;
import org.h2gis.functions.factory.H2GISFunctionsFactory;
import org.h2gis.functions.factory.H2GISFunctions;

/**
* Publish H2GIS service on OSGi. Track for DataSource service, register spatial features into it.
Expand All @@ -40,7 +40,7 @@ public class Activator implements BundleActivator {

@Override
public void start(BundleContext bc) throws Exception {
for(Function function : H2GISFunctionsFactory.getBuiltInsFunctions()) {
for(Function function : H2GISFunctions.getBuiltInsFunctions()) {
bc.registerService(Function.class,
function,
null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.sql.SQLException;
import javax.sql.DataSource;
import org.h2gis.api.Function;
import org.h2gis.functions.factory.H2GISFunctionsFactory;
import org.h2gis.functions.factory.H2GISFunctions;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.util.tracker.ServiceTracker;
Expand Down Expand Up @@ -63,7 +63,7 @@ public Function addingService(ServiceReference<Function> reference) {
try {
Connection connection = dataSource.getConnection();
try {
H2GISFunctionsFactory.registerFunction(connection.createStatement(), function, ""); //bundle.getSymbolicName() + ":" + bundle.getVersion().toString() + ":"
H2GISFunctions.registerFunction(connection.createStatement(), function, ""); //bundle.getSymbolicName() + ":" + bundle.getVersion().toString() + ":"
} finally {
connection.close();
}
Expand All @@ -83,7 +83,7 @@ public void removedService(ServiceReference<Function> reference, Function servic
try {
Connection connection = dataSource.getConnection();
try {
H2GISFunctionsFactory.unRegisterFunction(connection.createStatement(), service);
H2GISFunctions.unRegisterFunction(connection.createStatement(), service);
} finally {
connection.close();
}
Expand Down

0 comments on commit 85a088f

Please sign in to comment.