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 00000000000..0d8db5acc05 --- /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 42e82f60c13..9d53e12c016 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 e5bf2d50af7..6217690e558 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 e45fe2b8b60..7913fabe0bb 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 {