public class FileSystemServiceProviderDiscoverer extends Object implements ServiceProviderDiscoverer
MuleFoldersUtil.SERVICES_FOLDER folder.| Constructor and Description |
|---|
FileSystemServiceProviderDiscoverer(org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader containerClassLoader,
org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoaderFactory<ServiceDescriptor> serviceClassLoaderFactory,
org.mule.runtime.module.artifact.api.descriptor.DescriptorLoaderRepository descriptorLoaderRepository,
org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder)
Creates a new instance that discover services from Mule Runtime services folder.
|
FileSystemServiceProviderDiscoverer(org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader containerClassLoader,
org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoaderFactory<ServiceDescriptor> serviceClassLoaderFactory,
org.mule.runtime.module.artifact.api.descriptor.DescriptorLoaderRepository descriptorLoaderRepository,
org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder,
File targetServicesFolder)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<ServiceAssembly> |
discover()
Discovers available service assemblies.
|
public FileSystemServiceProviderDiscoverer(org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader containerClassLoader,
org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoaderFactory<ServiceDescriptor> serviceClassLoaderFactory,
org.mule.runtime.module.artifact.api.descriptor.DescriptorLoaderRepository descriptorLoaderRepository,
org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder,
File targetServicesFolder)
containerClassLoader - container artifact classLoader. Non null.serviceClassLoaderFactory - factory used to create service's classloaders. Non null.descriptorLoaderRepository - contains all the ClassLoaderModelLoader registered on the container. Non nullartifactDescriptorValidatorBuilder - ArtifactDescriptorValidatorBuilder to create the ArtifactDescriptorValidator in order to check the state of the descriptor once loaded.targetServicesFolder - File where services are exploded and would be discovered. Non null.public FileSystemServiceProviderDiscoverer(org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader containerClassLoader,
org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoaderFactory<ServiceDescriptor> serviceClassLoaderFactory,
org.mule.runtime.module.artifact.api.descriptor.DescriptorLoaderRepository descriptorLoaderRepository,
org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder)
containerClassLoader - container artifact classLoader. Non null.serviceClassLoaderFactory - factory used to create service's classloaders. Non null.descriptorLoaderRepository - contains all the ClassLoaderModelLoader registered on the container. Non nullartifactDescriptorValidatorBuilder - ArtifactDescriptorValidatorBuilder to create the ArtifactDescriptorValidator in order to check the state of the descriptor once loaded.public List<ServiceAssembly> discover() throws ServiceResolutionError
ServiceProviderDiscovererdiscover in interface ServiceProviderDiscovererServiceAssembly found in the container.ServiceResolutionError - when a ServiceProvider cannot be properly instantiated.Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.