This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 9e1128778b48917b67e9b65ed23dc2a6f7c99c1e Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Thu Dec 14 18:02:26 2023 +0100 Move `StoreTypeDetector` to a dedicated "services" package. More service implementations may be added in the future. --- .../services/java.nio.file.spi.FileTypeDetector | 2 +- .../org.apache.sis.storage/main/module-info.java | 2 +- .../{internal => services}/StoreTypeDetector.java | 2 +- .../apache/sis/storage/services/package-info.java | 25 ++++++++++++++++++++++ 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/endorsed/src/org.apache.sis.storage/main/META-INF/services/java.nio.file.spi.FileTypeDetector b/endorsed/src/org.apache.sis.storage/main/META-INF/services/java.nio.file.spi.FileTypeDetector index 1fbfbdd515..349fd2d6fc 100644 --- a/endorsed/src/org.apache.sis.storage/main/META-INF/services/java.nio.file.spi.FileTypeDetector +++ b/endorsed/src/org.apache.sis.storage/main/META-INF/services/java.nio.file.spi.FileTypeDetector @@ -1,4 +1,4 @@ # Workaround for Maven bug https://issues.apache.org/jira/browse/MNG-7855 # The content of this file is automatically derived from module-info.class file. # Should be used only if the JAR file was on class-path rather than module-path. -org.apache.sis.storage.internal.StoreTypeDetector +org.apache.sis.storage.services.StoreTypeDetector diff --git a/endorsed/src/org.apache.sis.storage/main/module-info.java b/endorsed/src/org.apache.sis.storage/main/module-info.java index 7e234050d7..404274bc85 100644 --- a/endorsed/src/org.apache.sis.storage/main/module-info.java +++ b/endorsed/src/org.apache.sis.storage/main/module-info.java @@ -30,7 +30,7 @@ module org.apache.sis.storage { requires transitive org.apache.sis.feature; provides java.nio.file.spi.FileTypeDetector - with org.apache.sis.storage.internal.StoreTypeDetector; + with org.apache.sis.storage.services.StoreTypeDetector; uses org.apache.sis.storage.DataStoreProvider; provides org.apache.sis.storage.DataStoreProvider diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/internal/StoreTypeDetector.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/services/StoreTypeDetector.java similarity index 98% rename from endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/internal/StoreTypeDetector.java rename to endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/services/StoreTypeDetector.java index 1ce0bdb686..b5bf3d02a5 100644 --- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/internal/StoreTypeDetector.java +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/services/StoreTypeDetector.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.sis.storage.internal; +package org.apache.sis.storage.services; import java.io.IOException; import java.nio.file.Path; diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/services/package-info.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/services/package-info.java new file mode 100644 index 0000000000..c2447550ba --- /dev/null +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/services/package-info.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Exposes some storage functionalities as service providers. + * This package is not for implementations of {@link org.apache.sis.storage.DataStoreProvider}, + * but rather for services defined by other SIS module or by the Java platform. + * + * @author Martin Desruisseaux (Geomatys) + */ +package org.apache.sis.storage.services;