From 7709d3b442df3d040cee73ba6e353813a4814c0a Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 5 Sep 2013 22:56:59 +0200 Subject: [PATCH] Fix factory issue. --- src/fr/devinsy/sikevadb/FileSikevaDB.java | 9 +++++++++ src/fr/devinsy/sikevadb/SikevaDBFactory.java | 18 +++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/sikevadb/FileSikevaDB.java b/src/fr/devinsy/sikevadb/FileSikevaDB.java index 79e2701..c9a6c36 100644 --- a/src/fr/devinsy/sikevadb/FileSikevaDB.java +++ b/src/fr/devinsy/sikevadb/FileSikevaDB.java @@ -15,6 +15,7 @@ */ package fr.devinsy.sikevadb; +import java.io.File; import java.util.Date; import fr.devinsy.util.StringList; @@ -25,6 +26,14 @@ import fr.devinsy.util.StringList; * @author Christian P. Momon */ public class FileSikevaDB implements SikevaDB { + /** + * + * @param path + */ + public FileSikevaDB(final File path) { + + } + /** * * @param path diff --git a/src/fr/devinsy/sikevadb/SikevaDBFactory.java b/src/fr/devinsy/sikevadb/SikevaDBFactory.java index 989b356..2df0013 100644 --- a/src/fr/devinsy/sikevadb/SikevaDBFactory.java +++ b/src/fr/devinsy/sikevadb/SikevaDBFactory.java @@ -15,6 +15,8 @@ */ package fr.devinsy.sikevadb; +import java.io.File; + /** * * @@ -26,7 +28,7 @@ public class SikevaDBFactory { * @param path * @return */ - public static SikevaDB get(final String path) { + public static SikevaDB get(final File path) { SikevaDB result; result = new FileSikevaDB(path); @@ -35,6 +37,20 @@ public class SikevaDBFactory { return result; } + /** + * + * @param path + * @return + */ + public static SikevaDB get(final String contextName) { + SikevaDB result; + + result = new SQLSikevaDB(contextName); + + // + return result; + } + /** * * @param driverClassName