Search in sources :

Example 1 with ServiceDescriptorFactory

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);
}
Also used : ServiceDescriptorFactory(org.mule.runtime.module.service.internal.artifact.ServiceDescriptorFactory) ServiceDescriptor(org.mule.runtime.module.service.internal.artifact.ServiceDescriptor) LinkedList(java.util.LinkedList)

Aggregations

LinkedList (java.util.LinkedList)1 ServiceDescriptor (org.mule.runtime.module.service.internal.artifact.ServiceDescriptor)1 ServiceDescriptorFactory (org.mule.runtime.module.service.internal.artifact.ServiceDescriptorFactory)1