Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarrios committed Nov 21, 2024
1 parent 8ca2f9c commit 418a888
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public static ClassLoaderConfigurationLoader serviceClassLoaderConfigurationLoad
}

public static ServiceClassLoaderFactory serviceClassLoaderFactory() {
LOGGER.debug("MRJAR 'ServiceClassLoaderFactoryProvider' implementation, using 'ServiceClassLoaderFactoryImpl'...");
final ServiceClassLoaderFactory serviceModuleLayerFactory = new ServiceClassLoaderFactoryImpl();
LOGGER.debug("MRJAR 'ServiceClassLoaderFactoryProvider' implementation, using 'ServiceModuleLayerFactory'...");
final ServiceClassLoaderFactory serviceModuleLayerFactory = new ServiceModuleLayerFactory();
serviceModuleLayerFactory.setParentLayerFrom(ServiceClassLoaderFactoryProvider.class);
return serviceModuleLayerFactory;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
/**
* Creates {@link ArtifactClassLoader} for service descriptors.
*/
public class ServiceClassLoaderFactoryImpl
public class ServiceModuleLayerFactory
implements
ServiceClassLoaderFactory {

private static final Logger LOGGER = LoggerFactory.getLogger(ServiceClassLoaderFactoryImpl.class);
private static final Logger LOGGER = LoggerFactory.getLogger(ServiceModuleLayerFactory.class);
private static final String CONTAINER_LAYER_NAME = "Mule Container Module Layer";

// prefixes of services provided by the Mule Runtime team
Expand All @@ -58,7 +58,7 @@ private MuleServiceClassLoader(String artifactId, ArtifactDescriptor artifactDes
}
}

private Optional<ModuleLayer> parentLayer = ofNullable(ServiceClassLoaderFactoryImpl.class.getModule().getLayer());
private Optional<ModuleLayer> parentLayer = ofNullable(ServiceModuleLayerFactory.class.getModule().getLayer());

/**
* {@inheritDoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.mule.runtime.module.artifact.api.descriptor.ClassLoaderConfigurationLoader;
import org.mule.runtime.module.artifact.api.descriptor.DescriptorLoaderRepository;
import org.mule.runtime.module.service.api.artifact.ServiceClassLoaderFactory;
import org.mule.runtime.module.service.api.artifact.ServiceClassLoaderFactoryImpl;
import org.mule.runtime.module.service.api.artifact.ServiceModuleLayerFactory;
import org.mule.runtime.module.service.api.artifact.ServiceDescriptor;
import org.mule.runtime.module.service.api.discoverer.ServiceAssembly;
import org.mule.runtime.module.service.builder.ServiceFileBuilder;
Expand Down Expand Up @@ -66,7 +66,7 @@ public class FileSystemServiceProviderDiscovererTestCase extends AbstractMuleTes
@Rule
public SystemPropertyTemporaryFolder temporaryFolder = new SystemPropertyTemporaryFolder(MULE_HOME_DIRECTORY_PROPERTY);

private final ServiceClassLoaderFactory serviceClassLoaderFactory = mock(ServiceClassLoaderFactoryImpl.class);
private final ServiceClassLoaderFactory serviceClassLoaderFactory = mock(ServiceModuleLayerFactory.class);
private final ArtifactClassLoader containerClassLoader = mock(ArtifactClassLoader.class);
private final DescriptorLoaderRepository descriptorLoaderRepository = mock(DescriptorLoaderRepository.class);
private final ArtifactDescriptorValidator artifactDescriptorValidator = mock(ArtifactDescriptorValidator.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
import org.mule.runtime.module.artifact.internal.util.FileJarExplorer;
import org.mule.runtime.module.artifact.internal.util.JarExplorer;
import org.mule.runtime.module.artifact.internal.util.JarInfo;
import org.mule.runtime.module.service.api.artifact.ServiceClassLoaderFactoryImpl;
import org.mule.runtime.module.service.api.artifact.ServiceModuleLayerFactory;
import org.mule.runtime.module.service.api.artifact.ServiceDescriptor;
import org.mule.test.runner.api.ArtifactClassLoaderHolder;
import org.mule.test.runner.api.ArtifactsUrlClassification;
Expand Down Expand Up @@ -148,7 +148,7 @@ public ArtifactClassLoaderHolder createArtifactClassLoader(List<String> extraBoo

ContainerDependantArtifactClassLoaderFactory<ServiceDescriptor> serviceClassLoaderFactory = serviceClassLoaderFactory();
serviceClassLoaderFactory.setParentLayerFrom(containerClassLoaderWrapper.getContainerClassLoader().getClassLoader()
.loadClass(ServiceClassLoaderFactoryImpl.class.getName()));
.loadClass(ServiceModuleLayerFactory.class.getName()));
List<ArtifactClassLoader> serviceArtifactClassLoaders =
createServiceClassLoaders(serviceClassLoaderFactory, containerClassLoaderWrapper, artifactsUrlClassification);

Expand Down

0 comments on commit 418a888

Please sign in to comment.