public class DomainClassLoaderFactory extends Object implements DeployableArtifactClassLoaderFactory<DomainDescriptor>
ArtifactClassLoader for domain artifacts.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
DomainClassLoaderFactory(Function<String,File> nativeLibsTempFolderChildFunction)
Creates a new factory
|
DomainClassLoaderFactory(NativeLibraryFinderFactory nativeLibraryFinderFactory)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
ArtifactClassLoader |
create(String artifactId,
ArtifactClassLoader parent,
DomainDescriptor descriptor) |
ArtifactClassLoader |
create(String artifactId,
ArtifactClassLoader parent,
DomainDescriptor descriptor,
List<ArtifactClassLoader> artifactPluginClassLoaders) |
static String |
getDomainId(String domainName) |
public DomainClassLoaderFactory(NativeLibraryFinderFactory nativeLibraryFinderFactory)
nativeLibraryFinderFactory - creates NativeLibraryFinder for the created modulepublic DomainClassLoaderFactory(Function<String,File> nativeLibsTempFolderChildFunction)
nativeLibsTempFolderChildFunction - a function to determine the location of a temp dir to copy the native libs of the
artifact to, based on the deployment name.public static String getDomainId(String domainName)
domainName - name of the domain. Non empty.public ArtifactClassLoader create(String artifactId, ArtifactClassLoader parent, DomainDescriptor descriptor)
create in interface DeployableArtifactClassLoaderFactory<DomainDescriptor>public ArtifactClassLoader create(String artifactId, ArtifactClassLoader parent, DomainDescriptor descriptor, List<ArtifactClassLoader> artifactPluginClassLoaders)
create in interface DeployableArtifactClassLoaderFactory<DomainDescriptor>Copyright © 2003–2023 MuleSoft, Inc.. All rights reserved.