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 418a888 commit c60ba04
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
3 changes: 1 addition & 2 deletions modules/container/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@
org.mule.runtime.deployment.model.impl,
org.mule.runtime.service,
org.mule.runtime.spring.config,
org.mule.test.runner,
org.mule.framework;
org.mule.test.runner;
}
3 changes: 1 addition & 2 deletions modules/service/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
exports org.mule.runtime.module.service.api.manager;

exports org.mule.runtime.module.service.internal.artifact to
org.mule.test.runner,
gorg.mule.framework;
org.mule.test.runner;
exports org.mule.runtime.module.service.internal.discoverer to
org.mule.runtime.artifact.activation,
org.mule.runtime.deployment.model.impl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import org.mule.runtime.container.api.ContainerDependantArtifactClassLoaderFactory;
import org.mule.runtime.container.api.MuleContainerClassLoaderWrapper;
import org.mule.runtime.container.internal.DefaultMuleContainerClassLoaderWrapper;
import org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader;
import org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoaderFactory;
import org.mule.runtime.module.artifact.api.classloader.ClassLoaderLookupPolicy;
Expand All @@ -27,6 +28,22 @@ ArtifactClassLoader create(String artifactId, ServiceDescriptor descriptor,
MuleContainerClassLoaderWrapper containerClassLoader)
throws ArtifactClassloaderCreationException;

/**
* Creates a {@link ClassLoader} from a given descriptor.
*
* @param artifactId artifact unique ID.
* @param descriptor descriptor of the artifact owner of the created class loader.
* @param containerClassLoader parent for the new artifact class loader.
* @return a new class loader for described artifact.
*
* @since 4.6
*/
default ArtifactClassLoader create(String artifactId, ServiceDescriptor descriptor, ArtifactClassLoader containerClassLoader)
throws ArtifactClassloaderCreationException {
return create(artifactId, descriptor, new DefaultMuleContainerClassLoaderWrapper(containerClassLoader));
}


@Override
void setParentLayerFrom(Class clazz);
}

0 comments on commit c60ba04

Please sign in to comment.