sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jso...@apache.org
Subject svn commit: r1806032 - in /sis/branches/JDK8/storage: sis-storage/src/main/java/org/apache/sis/storage/DataStore.java sis-xmlstore/src/main/java/org/apache/sis/internal/storage/xml/stream/StaxDataStore.java
Date Thu, 24 Aug 2017 12:08:32 GMT
Author: jsorel
Date: Thu Aug 24 12:08:31 2017
New Revision: 1806032

URL: http://svn.apache.org/viewvc?rev=1806032&view=rev
Log:
Add method on DataStore to return it's provider

Modified:
    sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/DataStore.java
    sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/storage/xml/stream/StaxDataStore.java

Modified: sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/DataStore.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/DataStore.java?rev=1806032&r1=1806031&r2=1806032&view=diff
==============================================================================
--- sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/DataStore.java
[UTF-8] (original)
+++ sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/DataStore.java
[UTF-8] Thu Aug 24 12:08:31 2017
@@ -170,6 +170,19 @@ public abstract class DataStore implemen
     }
 
     /**
+     * Returns the factory that created this {@code DataStore} instance, or {@code null}
if unspecified.
+     *
+     * <p>The provider provide additional informations on this {@code DataStore} such
as
+     * a format description and the possible parameters usable to configure this store.
+     * </p>
+     *
+     * @return provider parent, can be null
+     */
+    public DataStoreProvider getProvider() {
+        return provider;
+    }
+
+    /**
      * Returns the parameters used to open this data store.
      * The description of those parameters are defined by {@link DataStoreProvider#getOpenParameters()
}.
      *

Modified: sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/storage/xml/stream/StaxDataStore.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/storage/xml/stream/StaxDataStore.java?rev=1806032&r1=1806031&r2=1806032&view=diff
==============================================================================
--- sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/storage/xml/stream/StaxDataStore.java
[UTF-8] (original)
+++ sis/branches/JDK8/storage/sis-xmlstore/src/main/java/org/apache/sis/internal/storage/xml/stream/StaxDataStore.java
[UTF-8] Thu Aug 24 12:08:31 2017
@@ -380,7 +380,7 @@ public abstract class StaxDataStore exte
     /**
      * Returns the factory that created this {@code DataStore} instance, or {@code null}
if unspecified.
      */
-    final StaxDataStoreProvider getProvider() {
+    public StaxDataStoreProvider getProvider() {
         return (StaxDataStoreProvider) provider;
     }
 



Mime
View raw message