diff --git a/pom.xml b/pom.xml
index c36f199..4f83bee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,6 +34,7 @@
vasc-core-ejb3-client
vasc-core-ejb3-server
vasc-export
+ vasc-opt
UTF-8
diff --git a/vasc-backend/pom.xml b/vasc-backend/pom.xml
index 59a6942..2973ed4 100644
--- a/vasc-backend/pom.xml
+++ b/vasc-backend/pom.xml
@@ -6,6 +6,7 @@
0.4.2-SNAPSHOT
vasc-backend
+ net.forwardfire.vasc.backend
pom
vasc-backend
vasc-backend
@@ -15,5 +16,6 @@
vasc-backend-mongodb
vasc-backend-jdbc
vasc-backend-metamodel
+ vasc-backend-api
diff --git a/vasc-backend/vasc-backend-api/.project b/vasc-backend/vasc-backend-api/.project
new file mode 100644
index 0000000..350bacf
--- /dev/null
+++ b/vasc-backend/vasc-backend-api/.project
@@ -0,0 +1,23 @@
+
+
+ vasc-backend-api
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
diff --git a/vasc-backend/vasc-backend-api/pom.xml b/vasc-backend/vasc-backend-api/pom.xml
new file mode 100644
index 0000000..db828d8
--- /dev/null
+++ b/vasc-backend/vasc-backend-api/pom.xml
@@ -0,0 +1,18 @@
+
+ 4.0.0
+
+ net.forwardfire.vasc.backend
+ vasc-backend
+ 0.4.2-SNAPSHOT
+
+ vasc-backend-api
+ vasc-backend-api
+ vasc-backend-api
+
+
+ org.x4o
+ x4o-driver
+ ${x4o.version}
+
+
+
\ No newline at end of file
diff --git a/vasc-core/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackend.java b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackend.java
similarity index 97%
rename from vasc-core/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackend.java
rename to vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackend.java
index ad61c35..117cc3c 100644
--- a/vasc-core/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackend.java
+++ b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackend.java
@@ -24,9 +24,6 @@ package net.forwardfire.vasc.backend;
import java.util.Map;
-import net.forwardfire.vasc.core.VascException;
-
-
/**
*
* @author Willem Cazander
@@ -110,14 +107,14 @@ abstract public class AbstractVascBackend implements VascBackend {
/**
* @see net.forwardfire.vasc.backend.VascBackend#doRecordMoveDownById(java.lang.Object)
*/
- public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascException {
+ public long doRecordMoveDownById(VascBackendState state,Object primaryId) throws VascBackendException {
return 0l;
}
/**
* @see net.forwardfire.vasc.backend.VascBackend#doRecordMoveUpById(java.lang.Object)
*/
- public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascException {
+ public long doRecordMoveUpById(VascBackendState state,Object primaryId) throws VascBackendException {
return 0l;
}
diff --git a/vasc-core/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackendControllerLocal.java b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackendControllerLocal.java
similarity index 100%
rename from vasc-core/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackendControllerLocal.java
rename to vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackendControllerLocal.java
diff --git a/vasc-core/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackendState.java b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackendState.java
similarity index 100%
rename from vasc-core/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackendState.java
rename to vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/AbstractVascBackendState.java
diff --git a/vasc-core/src/main/java/net/forwardfire/vasc/impl/DefaultVascBackendController.java b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/DefaultVascBackendController.java
similarity index 93%
rename from vasc-core/src/main/java/net/forwardfire/vasc/impl/DefaultVascBackendController.java
rename to vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/DefaultVascBackendController.java
index 76ea74f..f9a6b10 100644
--- a/vasc-core/src/main/java/net/forwardfire/vasc/impl/DefaultVascBackendController.java
+++ b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/DefaultVascBackendController.java
@@ -20,9 +20,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-package net.forwardfire.vasc.impl;
+package net.forwardfire.vasc.backend;
-import net.forwardfire.vasc.backend.AbstractVascBackendControllerLocal;
/**
* DefaultVascBackendController stores the vasc backends.
diff --git a/vasc-core/src/main/java/net/forwardfire/vasc/impl/DefaultVascBackendState.java b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/DefaultVascBackendState.java
similarity index 94%
rename from vasc-core/src/main/java/net/forwardfire/vasc/impl/DefaultVascBackendState.java
rename to vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/DefaultVascBackendState.java
index 9964a74..654ea8d 100644
--- a/vasc-core/src/main/java/net/forwardfire/vasc/impl/DefaultVascBackendState.java
+++ b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/DefaultVascBackendState.java
@@ -20,9 +20,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-package net.forwardfire.vasc.impl;
+package net.forwardfire.vasc.backend;
-import net.forwardfire.vasc.backend.AbstractVascBackendState;
/**
* Holds the state for the backend
diff --git a/vasc-core/src/main/java/net/forwardfire/vasc/backend/VascBackend.java b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/VascBackend.java
similarity index 81%
rename from vasc-core/src/main/java/net/forwardfire/vasc/backend/VascBackend.java
rename to vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/VascBackend.java
index 7280cd8..c522e5b 100644
--- a/vasc-core/src/main/java/net/forwardfire/vasc/backend/VascBackend.java
+++ b/vasc-backend/vasc-backend-api/src/main/java/net/forwardfire/vasc/backend/VascBackend.java
@@ -25,13 +25,6 @@ package net.forwardfire.vasc.backend;
import java.util.List;
import java.util.Map;
-import net.forwardfire.vasc.core.VascEntry;
-import net.forwardfire.vasc.core.VascEntryField;
-import net.forwardfire.vasc.core.entry.VascEntryFieldValue;
-import net.forwardfire.vasc.core.entry.VascEntryRecordCreator;
-import net.forwardfire.vasc.core.VascException;
-
-
/**
*
* @author Willem Cazander
@@ -45,32 +38,30 @@ public interface VascBackend {
public void startBackend();
public void stopBackend();
- public List