From 112ca0a3c60f4d497d8f5d8d49942f416248b321 Mon Sep 17 00:00:00 2001 From: Leandro Ezequiel Barrios Date: Tue, 26 Nov 2024 13:45:24 -0300 Subject: [PATCH] ... --- .../service/api/artifact/IServiceClassLoaderFactory.java | 6 ++++++ .../service/api/artifact/ServiceClassLoaderFactory.java | 3 ++- .../api/artifact/ServiceClassLoaderFactoryProvider.java | 1 + .../service/api/artifact/ServiceModuleLayerFactory.java | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/IServiceClassLoaderFactory.java diff --git a/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/IServiceClassLoaderFactory.java b/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/IServiceClassLoaderFactory.java new file mode 100644 index 000000000000..0d8db5acc059 --- /dev/null +++ b/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/IServiceClassLoaderFactory.java @@ -0,0 +1,6 @@ +package org.mule.runtime.module.service.api.artifact; + +import org.mule.runtime.container.api.ContainerDependantArtifactClassLoaderFactory; + +public interface IServiceClassLoaderFactory extends ContainerDependantArtifactClassLoaderFactory { +} diff --git a/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceClassLoaderFactory.java b/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceClassLoaderFactory.java index 42e82f60c134..9d53e12c016a 100644 --- a/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceClassLoaderFactory.java +++ b/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceClassLoaderFactory.java @@ -18,8 +18,9 @@ /** * Creates {@link ArtifactClassLoader} for service descriptors. * + * @deprecated since 4.8, use {@link IServiceClassLoaderFactory} */ -// TODO W-12780081 - remove usages of deprecated creation method +@Deprecated public class ServiceClassLoaderFactory implements ArtifactClassLoaderFactory, ContainerDependantArtifactClassLoaderFactory { diff --git a/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceClassLoaderFactoryProvider.java b/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceClassLoaderFactoryProvider.java index e5bf2d50af7b..6217690e5586 100644 --- a/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceClassLoaderFactoryProvider.java +++ b/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceClassLoaderFactoryProvider.java @@ -21,6 +21,7 @@ * previous implementation. * * @since 4.5 + * @deprecated since 4.8, use {@link ServiceClassLoaderFactoryProvider} instead. */ public class ServiceClassLoaderFactoryProvider { diff --git a/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceModuleLayerFactory.java b/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceModuleLayerFactory.java index e45fe2b8b60a..7913fabe0bba 100644 --- a/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceModuleLayerFactory.java +++ b/modules/service/src/main/java/org/mule/runtime/module/service/api/artifact/ServiceModuleLayerFactory.java @@ -37,6 +37,7 @@ /** * Creates {@link ArtifactClassLoader} for service descriptors. + * @deprecated since 4.8, see {@link IServiceClassLoaderFactory} */ class ServiceModuleLayerFactory extends ServiceClassLoaderFactory {