public class ServiceRegistryDescriptorLoaderRepository extends Object implements DescriptorLoaderRepository
DescriptorLoaderRepository that uses a ServiceRegistry to detect available implementations of
ClassLoaderConfigurationLoader| Constructor and Description |
|---|
ServiceRegistryDescriptorLoaderRepository(ServiceRegistry serviceRegistry)
Creates a new repository
|
| Modifier and Type | Method and Description |
|---|---|
<T extends DescriptorLoader> |
get(String id,
ArtifactType artifactType,
Class<T> loaderClass) |
protected static <T extends DescriptorLoader> |
noRegisteredLoaderError(String id,
Class<T> loaderClass) |
public ServiceRegistryDescriptorLoaderRepository(ServiceRegistry serviceRegistry)
serviceRegistry - provides access to the ClassLoaderConfigurationLoader that must be tracked on the repository.
Non nullpublic <T extends DescriptorLoader> T get(String id, ArtifactType artifactType, Class<T> loaderClass) throws LoaderNotFoundException
get in interface DescriptorLoaderRepositoryLoaderNotFoundExceptionprotected static <T extends DescriptorLoader> String noRegisteredLoaderError(String id, Class<T> loaderClass)
Copyright © 2003–2023 MuleSoft, Inc.. All rights reserved.