This is an automated email from the ASF dual-hosted git repository.

nizhikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 202b1fc8344 IGNITE-28186 DeploymentSPI marked as deprecated (#12874)
202b1fc8344 is described below

commit 202b1fc834401c8bc3202d11febb74880d8dc5e0
Author: Nikolay <[email protected]>
AuthorDate: Mon Mar 16 18:20:05 2026 +0300

    IGNITE-28186 DeploymentSPI marked as deprecated (#12874)
---
 .../java/org/apache/ignite/configuration/DeploymentMode.java |  4 ++++
 .../org/apache/ignite/configuration/IgniteConfiguration.java | 12 ++++++++++++
 .../org/apache/ignite/spi/deployment/DeploymentListener.java |  4 ++++
 .../org/apache/ignite/spi/deployment/DeploymentResource.java |  4 ++++
 .../ignite/spi/deployment/DeploymentResourceAdapter.java     |  4 ++++
 .../java/org/apache/ignite/spi/deployment/DeploymentSpi.java |  4 ++++
 .../ignite/spi/deployment/local/LocalDeploymentSpi.java      |  3 +++
 .../ignite/spi/deployment/local/LocalDeploymentSpiMBean.java |  4 ++++
 .../apache/ignite/spi/deployment/uri/UriDeploymentSpi.java   |  3 +++
 .../ignite/spi/deployment/uri/UriDeploymentSpiMBean.java     |  4 ++++
 10 files changed, 46 insertions(+)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/configuration/DeploymentMode.java
 
b/modules/core/src/main/java/org/apache/ignite/configuration/DeploymentMode.java
index 030ba9be652..b2147b41c4d 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/configuration/DeploymentMode.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/configuration/DeploymentMode.java
@@ -69,7 +69,11 @@ import org.jetbrains.annotations.Nullable;
  *      any need for explicit deployment.
  *  </li>
  * </ol>
+ *
+ * @deprecated Will be replaced with the
+ * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
  */
+@Deprecated
 public enum DeploymentMode {
     /**
      * In this mode deployed classes do not share resources. Basically, 
resources are created
diff --git 
a/modules/core/src/main/java/org/apache/ignite/configuration/IgniteConfiguration.java
 
b/modules/core/src/main/java/org/apache/ignite/configuration/IgniteConfiguration.java
index c767e193730..16d0bac76cf 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/configuration/IgniteConfiguration.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/configuration/IgniteConfiguration.java
@@ -2130,7 +2130,10 @@ public class IgniteConfiguration {
      * {@link LocalDeploymentSpi} will be used.
      *
      * @return Grid deployment SPI implementation or {@code null} to use 
default implementation.
+     * @deprecated Will be replaced with the
+     * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
      */
+    @Deprecated
     public DeploymentSpi getDeploymentSpi() {
         return deploySpi;
     }
@@ -2141,7 +2144,10 @@ public class IgniteConfiguration {
      * @param deploySpi Fully configured instance of {@link DeploymentSpi}.
      * @see IgniteConfiguration#getDeploymentSpi()
      * @return {@code this} for chaining.
+     * @deprecated Will be replaced with the
+     * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
      */
+    @Deprecated
     public IgniteConfiguration setDeploymentSpi(DeploymentSpi deploySpi) {
         this.deploySpi = deploySpi;
 
@@ -2474,7 +2480,10 @@ public class IgniteConfiguration {
      *
      * @param deployMode Task classes and resources sharing mode.
      * @return {@code this} for chaining.
+     * @deprecated Will be replaced with the
+     * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
      */
+    @Deprecated
     public IgniteConfiguration setDeploymentMode(DeploymentMode deployMode) {
         this.deployMode = deployMode;
 
@@ -2486,7 +2495,10 @@ public class IgniteConfiguration {
      * Refer to {@link DeploymentMode} documentation for more information.
      *
      * @return Deployment mode.
+     * @deprecated Will be replaced with the
+     * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
      */
+    @Deprecated
     public DeploymentMode getDeploymentMode() {
         return deployMode;
     }
diff --git 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentListener.java
 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentListener.java
index 500c8f09204..9e2b4d413a1 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentListener.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentListener.java
@@ -22,7 +22,11 @@ import java.util.EventListener;
 /**
  * Listener for deployment events. It is used by grid implementation
  * to properly create or release resources associated with any deployment.
+ *
+ * @deprecated Will be replaced with the
+ * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
  */
+@Deprecated
 public interface DeploymentListener extends EventListener {
     /**
      * Called when a deployment has been unregistered..
diff --git 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResource.java
 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResource.java
index f11a2270986..df1da1f76ea 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResource.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResource.java
@@ -19,7 +19,11 @@ package org.apache.ignite.spi.deployment;
 
 /**
  * Generic abstraction over deployed resource containing resource's name, 
class and corresponding class loader.
+ *
+ * @deprecated Will be replaced with the
+ * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
  */
+@Deprecated
 public interface DeploymentResource {
     /**
      * Gets resource name, either class name or alias name, such as alias
diff --git 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResourceAdapter.java
 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResourceAdapter.java
index a060b232e7d..a7f30e7e8ce 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResourceAdapter.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResourceAdapter.java
@@ -21,7 +21,11 @@ import org.apache.ignite.internal.util.typedef.internal.S;
 
 /**
  * Simple adapter for {@link DeploymentResource} interface.
+ *
+ * @deprecated Will be replaced with the
+ * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
  */
+@Deprecated
 public class DeploymentResourceAdapter implements DeploymentResource {
     /** */
     private final String name;
diff --git 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentSpi.java
 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentSpi.java
index af09e482d20..993769cad16 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentSpi.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentSpi.java
@@ -57,7 +57,11 @@ import org.jetbrains.annotations.Nullable;
  * via {@link org.apache.ignite.Ignite#configuration()} method to check its 
configuration properties or call other non-SPI
  * methods. Note again that calling methods from this interface on the 
obtained instance can lead
  * to undefined behavior and explicitly not supported.
+ *
+ * @deprecated Will be replaced with the
+ * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
  */
+@Deprecated
 public interface DeploymentSpi extends IgniteSpi {
     /**
      * Finds class loader for the given class.
diff --git 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpi.java
 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpi.java
index f558ca25087..886afffff12 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpi.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpi.java
@@ -62,9 +62,12 @@ import org.jsr166.ConcurrentLinkedHashMap;
  * with {@link org.apache.ignite.configuration.IgniteConfiguration} as it is 
used by default and has no
  * configuration parameters.
  * @see org.apache.ignite.spi.deployment.DeploymentSpi
+ * @deprecated Will be replaced with the
+ * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
  */
 @IgniteSpiMultipleInstancesSupport(true)
 @IgnoreIfPeerClassLoadingDisabled
+@Deprecated
 public class LocalDeploymentSpi extends IgniteSpiAdapter implements 
DeploymentSpi {
     /** Enables additional check for resource name on resources removal. */
     @SystemProperty(value = "Enables an additional check of a resource name on 
resources removal")
diff --git 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpiMBean.java
 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpiMBean.java
index e07469f19f9..3052d239b82 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpiMBean.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpiMBean.java
@@ -22,8 +22,12 @@ import org.apache.ignite.spi.IgniteSpiManagementMBean;
 
 /**
  * Management MBean for {@link LocalDeploymentSpi} SPI.
+ *
+ * @deprecated Will be replaced with the
+ * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
  */
 @MXBeanDescription("MBean that provides access to local deployment SPI 
configuration.")
+@Deprecated
 public interface LocalDeploymentSpiMBean extends IgniteSpiManagementMBean {
     // No-op.
 }
diff --git 
a/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpi.java
 
b/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpi.java
index 2639cc62c1a..25828a50931 100644
--- 
a/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpi.java
+++ 
b/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpi.java
@@ -306,9 +306,12 @@ import org.jetbrains.annotations.Nullable;
  * <br>
  * For information about Spring framework visit <a 
href="http://www.springframework.org/";>www.springframework.org</a>
  * @see org.apache.ignite.spi.deployment.DeploymentSpi
+ * @deprecated Will be replaced with the
+ * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
  */
 @IgniteSpiMultipleInstancesSupport(true)
 @IgniteSpiConsistencyChecked(optional = false)
+@Deprecated
 @SuppressWarnings({"FieldAccessedSynchronizedAndUnsynchronized"})
 public class UriDeploymentSpi extends IgniteSpiAdapter implements 
DeploymentSpi {
     /**
diff --git 
a/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpiMBean.java
 
b/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpiMBean.java
index d1e599f1ee7..cd204c31330 100644
--- 
a/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpiMBean.java
+++ 
b/modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpiMBean.java
@@ -23,7 +23,11 @@ import org.apache.ignite.spi.IgniteSpiManagementMBean;
 
 /**
  * Management bean for {@link UriDeploymentSpi}.
+ *
+ * @deprecated Will be replaced with the
+ * <a 
href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath";>IgniteClassPath</a>
 in the next versions.
  */
+@Deprecated
 @MXBeanDescription("MBean that provides access to URI deployment SPI 
configuration.")
 public interface UriDeploymentSpiMBean extends IgniteSpiManagementMBean {
     /**

Reply via email to