public class PolicyTemplateClassLoaderBuilder extends AbstractArtifactClassLoaderBuilder<PolicyTemplateClassLoaderBuilder>
PolicyTemplateartifactDescriptor, artifactPluginClassLoaders, logger| Constructor and Description |
|---|
PolicyTemplateClassLoaderBuilder(DeployableArtifactClassLoaderFactory artifactClassLoaderFactory,
RegionPluginClassLoadersFactory pluginClassLoadersFactory)
Creates an
AbstractArtifactClassLoaderBuilder. |
| Modifier and Type | Method and Description |
|---|---|
MuleDeployableArtifactClassLoader |
build()
Creates a new
ArtifactClassLoader using the provided configuration. |
protected ArtifactClassLoader |
createArtifactClassLoader(String artifactId,
RegionClassLoader regionClassLoader)
Creates the class loader for the artifact being built.
|
protected String |
getArtifactId(ArtifactDescriptor artifactDescriptor) |
protected ArtifactClassLoader |
getParentClassLoader()
Implementation must redefine this method and it should provide the root class loader which is going to be used as parent
class loader for every other class loader created by this builder.
|
String |
getPolicyId(String policyName) |
PolicyTemplateClassLoaderBuilder |
setParentClassLoader(ArtifactClassLoader parentClassLoader) |
addArtifactPluginDescriptors, createRegionClassLoader, getParentLookupPolicy, setArtifactDescriptor, setArtifactIdpublic PolicyTemplateClassLoaderBuilder(DeployableArtifactClassLoaderFactory artifactClassLoaderFactory, RegionPluginClassLoadersFactory pluginClassLoadersFactory)
AbstractArtifactClassLoaderBuilder.artifactClassLoaderFactory - factory for the classloader specific to the artifact resource and classes. Must be not
null.pluginClassLoadersFactory - creates the class loaders for the plugins included in the policy's region. Non nullprotected ArtifactClassLoader createArtifactClassLoader(String artifactId, RegionClassLoader regionClassLoader)
AbstractArtifactClassLoaderBuildercreateArtifactClassLoader in class AbstractArtifactClassLoaderBuilder<PolicyTemplateClassLoaderBuilder>artifactId - identifies the artifact being created. Non empty.regionClassLoader - class loader containing the artifact and dependant class loaders. Non null.protected ArtifactClassLoader getParentClassLoader()
AbstractArtifactClassLoaderBuildergetParentClassLoader in class AbstractArtifactClassLoaderBuilder<PolicyTemplateClassLoaderBuilder>public MuleDeployableArtifactClassLoader build() throws IOException
AbstractArtifactClassLoaderBuilderArtifactClassLoader using the provided configuration. It will create the proper class loader hierarchy
and filters the artifact resources and plugins classes and resources are resolve correctly.build in class AbstractArtifactClassLoaderBuilder<PolicyTemplateClassLoaderBuilder>ArtifactClassLoader created from the provided configuration.IOException - exception cause when it was not possible to access the file provided as dependenciespublic PolicyTemplateClassLoaderBuilder setParentClassLoader(ArtifactClassLoader parentClassLoader)
protected String getArtifactId(ArtifactDescriptor artifactDescriptor)
getArtifactId in class AbstractArtifactClassLoaderBuilder<PolicyTemplateClassLoaderBuilder>Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.