public class DefaultApplicationClassLoaderBuilder extends Object implements ApplicationClassLoaderBuilder
ArtifactClassLoader builder for class loaders required by Application artifacts| Constructor and Description |
|---|
DefaultApplicationClassLoaderBuilder(ArtifactClassLoaderResolver artifactClassLoaderResolver)
Creates a new builder for creating
Application artifacts. |
| Modifier and Type | Method and Description |
|---|---|
MuleDeployableArtifactClassLoader |
build()
Creates a new
MuleDeployableArtifactClassLoader using the provided configuration. |
ApplicationClassLoaderBuilder |
setArtifactDescriptor(ArtifactDescriptor artifactDescriptor) |
DefaultApplicationClassLoaderBuilder |
setDomainParentClassLoader(ArtifactClassLoader domainArtifactClassLoader) |
public DefaultApplicationClassLoaderBuilder(ArtifactClassLoaderResolver artifactClassLoaderResolver)
Application artifacts.
The domainRepository is used to locate the domain that this application belongs to and the
artifactClassLoaderBuilder is used for building the common parts of artifacts.
artifactClassLoaderResolver - resolver that will be used to create the class loader. Non-nullpublic ApplicationClassLoaderBuilder setArtifactDescriptor(ArtifactDescriptor artifactDescriptor)
setArtifactDescriptor in interface ApplicationClassLoaderBuilderartifactDescriptor - the descriptor of the artifact for which the class loader is going to be created.public MuleDeployableArtifactClassLoader build()
MuleDeployableArtifactClassLoader using the provided configuration. It will create the proper class
loader hierarchy and filters so application classes, resources, plugins and it's domain resources are resolve correctly.build in interface ApplicationClassLoaderBuilderMuleDeployableArtifactClassLoader created from the provided configuration.IOException - exception cause when it was not possible to access the file provided as dependenciespublic DefaultApplicationClassLoaderBuilder setDomainParentClassLoader(ArtifactClassLoader domainArtifactClassLoader)
setDomainParentClassLoader in interface ApplicationClassLoaderBuilderdomainArtifactClassLoader - the domain artifact to which the application that is going to use this classloader belongs.Copyright © 2003–2023 MuleSoft, Inc.. All rights reserved.