use of org.mule.runtime.deployment.model.api.domain.DomainDescriptor in project mule by mulesoft.
the class DomainClassLoaderFactoryTestCase method getTestDescriptor.
private DomainDescriptor getTestDescriptor(String name) {
DomainDescriptor descriptor = new DomainDescriptor(name);
descriptor.setRedeploymentEnabled(false);
return descriptor;
}
use of org.mule.runtime.deployment.model.api.domain.DomainDescriptor in project mule by mulesoft.
the class ApplicationClassLoaderBuilder method getParentLookupPolicy.
@Override
protected ClassLoaderLookupPolicy getParentLookupPolicy(ArtifactClassLoader parentClassLoader) {
Map<String, LookupStrategy> lookupStrategies = new HashMap<>();
DomainDescriptor descriptor = parentClassLoader.getArtifactDescriptor();
descriptor.getClassLoaderModel().getExportedPackages().forEach(p -> lookupStrategies.put(p, PARENT_FIRST));
for (ArtifactPluginDescriptor artifactPluginDescriptor : descriptor.getPlugins()) {
artifactPluginDescriptor.getClassLoaderModel().getExportedPackages().forEach(p -> lookupStrategies.put(p, PARENT_FIRST));
}
return parentClassLoader.getClassLoaderLookupPolicy().extend(lookupStrategies);
}
Aggregations