use of org.mule.runtime.module.service.internal.artifact.ServiceDescriptorFactory in project mule by mulesoft.
the class FileSystemServiceProviderDiscoverer method discover.
@Override
public List<Pair<ArtifactClassLoader, ServiceProvider>> discover() throws ServiceResolutionError {
final ServiceDescriptorFactory serviceDescriptorFactory = new ServiceDescriptorFactory(descriptorLoaderRepository, artifactDescriptorValidatorBuilder);
final List<ServiceDescriptor> serviceDescriptors = new LinkedList<>();
serviceDescriptors.addAll(getServiceDescriptors(serviceDescriptorFactory));
return createServiceProviders(serviceDescriptors, serviceClassLoaderFactory);
}
Aggregations