public class ReflectionServiceResolver extends Object implements ServiceResolver
Service instances given a set of ServiceProvider instances.
Resolution process consist if find, for each service provider, all the service dependencies it has. Then, service providers
will be instantiated when the required set of dependencies is available.
Resolution of services providers must be done always in the same order for the same set of providers to ensure a consistent
startup of the container.
In case of a missing dependency, the resolution will fail and the container should not start.| Constructor and Description |
|---|
ReflectionServiceResolver(ServiceProviderResolutionHelper serviceProviderResolutionHelper)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.mule.runtime.api.util.Pair<org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader,org.mule.runtime.api.service.Service>> |
resolveServices(List<org.mule.runtime.api.util.Pair<org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader,org.mule.runtime.api.service.ServiceProvider>> serviceProviders)
Resolves the services instances provided by the given service providers.
|
public ReflectionServiceResolver(ServiceProviderResolutionHelper serviceProviderResolutionHelper)
serviceProviderResolutionHelper - utility used to process service providers. Non null.public List<org.mule.runtime.api.util.Pair<org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader,org.mule.runtime.api.service.Service>> resolveServices(List<org.mule.runtime.api.util.Pair<org.mule.runtime.module.artifact.api.classloader.ArtifactClassLoader,org.mule.runtime.api.service.ServiceProvider>> serviceProviders) throws ServiceResolutionError
ServiceResolverresolveServices in interface ServiceResolverserviceProviders - service providers to be resolved. Non null.ServiceResolutionErrorCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.