[Mulgara-svn] r1157 - trunk/src/jar/resolver-spi/java/org/mulgara/resolver/spi

pag at mulgara.org pag at mulgara.org
Sat Aug 23 01:47:29 UTC 2008


Author: pag
Date: 2008-08-22 18:47:28 -0700 (Fri, 22 Aug 2008)
New Revision: 1157

Modified:
   trunk/src/jar/resolver-spi/java/org/mulgara/resolver/spi/FactoryInitializer.java
Log:
Removed warning on an unparameterized set, and added the getDirectories() method to allow for more than one directory when initializing

Modified: trunk/src/jar/resolver-spi/java/org/mulgara/resolver/spi/FactoryInitializer.java
===================================================================
--- trunk/src/jar/resolver-spi/java/org/mulgara/resolver/spi/FactoryInitializer.java	2008-08-23 01:46:09 UTC (rev 1156)
+++ trunk/src/jar/resolver-spi/java/org/mulgara/resolver/spi/FactoryInitializer.java	2008-08-23 01:47:28 UTC (rev 1157)
@@ -32,15 +32,8 @@
 import java.util.Set;
 import java.io.File;
 
-// Third party packages
-import org.jrdf.graph.Node;
-import org.jrdf.graph.URIReference;
-
 // Local packages
-import org.mulgara.server.Session;
-import org.mulgara.store.nodepool.NodePool;
 import org.mulgara.store.nodepool.NodePoolFactory;
-import org.mulgara.store.stringpool.StringPool;
 import org.mulgara.store.stringpool.StringPoolFactory;
 
 /**
@@ -64,8 +57,7 @@
  * @licence <a href="{@docRoot}/../../LICENCE">Mozilla Public License v1.1</a>
  */
 
-public interface FactoryInitializer
-{
+public interface FactoryInitializer {
 
   /**
    * Obtain the canonical name of this database.
@@ -79,7 +71,7 @@
    * @return the Set of Strings that enumerates the alternative hostnames.
    * @throws IllegalStateException if called outside of initialization
    */
-  public Set getHostnameAliases();
+  public Set<String> getHostnameAliases();
 
   /**
    * Obtain a persistence directory.
@@ -93,4 +85,14 @@
    */
   public File getDirectory() throws InitializerException;
 
+  /**
+   * Obtain an array of persistence directories.
+   *
+   * @return an array of directories for the factory's exclusive use, or <code>null</code>
+   *   if the database has no persistence directory configured for this resolver factory's use.
+   * @throws IllegalStateException if called outside of initialization
+   * @throws InitializerException if the requested <var>subdirectory</var> is not available
+   */
+  public File[] getDirectories() throws InitializerException;
+
 }




More information about the Mulgara-svn mailing list